Better code for i18n from database
This commit is contained in:
parent
0723960f7b
commit
a05537fdab
@ -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…
Reference in New Issue
Block a user