Skip to content

Instantly share code, notes, and snippets.

@theo-bittencourt
Created February 22, 2017 23:53
Show Gist options
  • Save theo-bittencourt/2cc9114c189cac346c7b1586fdce6c0a to your computer and use it in GitHub Desktop.
Save theo-bittencourt/2cc9114c189cac346c7b1586fdce6c0a to your computer and use it in GitHub Desktop.
# 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