Module: I18nAutoScoping::ActionControllerDefaultScope

Defined in:
lib/i18n_auto_scoping.rb

Instance Method Summary collapse

Instance Method Details

#set_default_i18n_scopeObject



4
5
6
# File 'lib/i18n_auto_scoping.rb', line 4

def set_default_i18n_scope
  I18n::Scope.default = "controllers/#{params[:controller]}"
end