Module: Globalize2::PagesControllerExtensions
- Defined in:
- lib/globalize2/pages_controller_extensions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/globalize2/pages_controller_extensions.rb', line 3 def self.included(base) base.class_eval do before_filter :reset_locale, :only => [:new] end end |
Instance Method Details
#reset_locale ⇒ Object
9 10 11 |
# File 'lib/globalize2/pages_controller_extensions.rb', line 9 def reset_locale Globalize2Extension.content_locale = session[:content_locale] = Globalize2Extension.default_language end |