Better code for i18n from database

This commit is contained in:
echarp 2019-11-05 22:21:48 +01:00
parent 0723960f7b
commit a05537fdab

View File

@ -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