summaryrefslogtreecommitdiff
path: root/config/application.rb
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-04 01:58:57 -0500
committerRuben Davila <rdavila84@gmail.com>2017-05-04 01:58:57 -0500
commit628d641b067fd0c0ba16fc7f6d68bcd241a7a105 (patch)
tree645691aeebe0648f8b048c4c414adb480b79a047 /config/application.rb
parentdbd1bdaeed596f14af89d662e73030bb02571cfd (diff)
downloadgitlab-ce-628d641b067fd0c0ba16fc7f6d68bcd241a7a105.tar.gz
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.rb3
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"