Module: RadiantTools::AdminLocale
- Defined in:
- lib/radiant_tools/admin_locale.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/radiant_tools/admin_locale.rb', line 2 def self.init ApplicationController.class_eval do def set_user_locale_with_admin if params[:controller].starts_with? 'admin/' set_user_locale_without_admin else I18n.locale = I18n.default_locale end end alias_method_chain :set_user_locale, :admin end end |