Browse Source

Better code for i18n from database

remotes/origin/master
echarp 2 years ago
parent
commit
a05537fdab
  1. 2
      config/initializers/locale.rb

2
config/initializers/locale.rb

@ -6,5 +6,5 @@ Translation = I18n::Backend::ActiveRecord::Translation
if Translation.table_exists?
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::ActiveRecord.new,
I18n.backend)
I18n::Backend::ActiveRecord.send :include, I18n::Backend::Memoize
I18n::Backend::ActiveRecord.include I18n::Backend::Memoize
end

Loading…
Cancel
Save