Created
February 22, 2017 23:53
-
-
Save theo-bittencourt/2cc9114c189cac346c7b1586fdce6c0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We can't use dynamic segment for the festivals because ActiveAdmin can't | |
# include it to default_url_options. So all named routes in admin will break. | |
Festival::KEYS.each do |festival_key| | |
scope festival_key do | |
scope ':locale', defaults: {locale: I18n.locale} do | |
devise_for :admin_users, ActiveAdmin::Devise.config | |
ActiveAdmin.routes(self) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment