0
0
Fork 0

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.
This commit is contained in:
Akihiko Odaki 2018-03-04 17:21:35 +09:00 committed by Eugen Rochko
parent 9110db41c5
commit 51d760960c
4 changed files with 28 additions and 51 deletions

View file

@ -51,6 +51,9 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
config.i18n.default_locale = :en
config.i18n.fallbacks = true
end
Paperclip::Attachment.default_options[:path] = "#{Rails.root}/spec/test_files/:class/:id_partition/:style.:extension"