Module: Globalize2::SiteControllerExtensions::InstanceMethods

Defined in:
lib/globalize2/site_controller_extensions.rb

Instance Method Summary collapse

Instance Method Details

#set_localeObject



13
14
15
16
# File 'lib/globalize2/site_controller_extensions.rb', line 13

def set_locale
  @locale = params[:locale] || Globalize2Extension.default_language
  Globalize2Extension.content_locale = I18n.locale = @locale.to_sym
end