* create admin setting for new user status
* limiting on signup working 🎉
* update registration specs
* sort out OAuth registrations
17 lines
455 B
Ruby
17 lines
455 B
Ruby
module Admin
|
|
module SettingsHelper
|
|
def billboard_enabled_countries_for_editing
|
|
::Settings::General.billboard_enabled_countries.to_json
|
|
end
|
|
|
|
def billboard_all_countries_for_editing
|
|
ISO3166::Country.all.to_h { |country| [country.alpha2, country.common_name] }
|
|
end
|
|
|
|
def new_user_status_options
|
|
::Settings::Authentication::NEW_USER_STATUSES.map do |status|
|
|
[status.humanize, status]
|
|
end
|
|
end
|
|
end
|
|
end
|