Sha256: 3a7107f25137ea952a47c5fefe44f67fc2c9ea2af0d62d0f193d99d39e247836
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
require 'i18n/backend/active_record' Translation = I18n::Backend::ActiveRecord::Translation if Translation.table_exists? I18n.backend = I18n::Backend::ActiveRecord.new I18n::Backend::ActiveRecord.send(:include, I18n::Backend::Memoize) I18n::Backend::Simple.send(:include, I18n::Backend::Memoize) I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization) I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Simple.new, I18n.backend) end I18n::Backend::ActiveRecord.configure do |config| # config.cleanup_with_destroy = true # defaults to false end
Version data entries
3 entries across 3 versions & 1 rubygems