Skip to content

Commit 5121021

Browse files
slbugSven Fuchs
authored andcommitted
RESERVED_KEYS moved from Base to I18n
1 parent 6068da3 commit 5121021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/i18n/backend/active_record/missing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def store_default_translations(locale, key, options = {})
4141
key = normalize_flat_keys(locale, key, scope, separator)
4242

4343
unless ActiveRecord::Translation.locale(locale).lookup(key).exists?
44-
interpolations = options.keys - Base::RESERVED_KEYS
44+
interpolations = options.keys - I18n::RESERVED_KEYS
4545
keys = count ? I18n.t('i18n.plural.keys', :locale => locale).map { |k| [key, k].join(FLATTEN_SEPARATOR) } : [key]
4646
keys.each { |key| store_default_translation(locale, key, interpolations) }
4747
end

0 commit comments

Comments
 (0)