]> cat aescling's git repositories - mastodon.git/commit
Set the default locale in config (#6580)
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Sun, 4 Mar 2018 08:21:35 +0000 (17:21 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Mar 2018 08:21:35 +0000 (09:21 +0100)
commit51d760960ccf0866eba32944434ba08b2cbe5092
treef939652be42e519fd20eb4af7a4ebf32e95d45ca
parent9110db41c53a2f3f22affc23b364362133997d3e
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.
app/controllers/concerns/localized.rb
config/application.rb
config/environments/test.rb
spec/controllers/concerns/localized_spec.rb