Set the default locale in config (#6580)
Previously the default locale was set by Localized concern for controllers, but it was not enforced for mailers. config is enforced throughout the application and an appropriate place to set the default locale.
Showing
- app/controllers/concerns/localized.rb 3 additions, 9 deletionsapp/controllers/concerns/localized.rb
- config/application.rb 7 additions, 2 deletionsconfig/application.rb
- config/environments/test.rb 3 additions, 0 deletionsconfig/environments/test.rb
- spec/controllers/concerns/localized_spec.rb 14 additions, 39 deletionsspec/controllers/concerns/localized_spec.rb
Please register or sign in to comment