diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-04 09:58:57 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-04 09:58:57 +0300 |
commit | 628d641b067fd0c0ba16fc7f6d68bcd241a7a105 (patch) | |
tree | 645691aeebe0648f8b048c4c414adb480b79a047 /config/application.rb | |
parent | dbd1bdaeed596f14af89d662e73030bb02571cfd (diff) |
Disable FastGettext from translating AR attrs.
It isn't working fine when using POROs in forms like WikiPage,
the following error is being raised: undefined method `abstract_class?' for Object:Class
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index f2ecc4ce77c..32ad2393648 100644 --- a/config/application.rb +++ b/config/application.rb @@ -40,6 +40,9 @@ module Gitlab # config.i18n.default_locale = :de config.i18n.enforce_available_locales = false + # Translation for AR attrs is not working well for POROs like WikiPage + config.gettext_i18n_rails.use_for_active_record_attributes = false + # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" |