instance method
store_default_translation
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
store_default_translation(locale, key, interpolations)
No documentation comment.
Parameters
-
localereq -
keyreq -
interpolationsreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/missing.rb, line 50
def store_default_translation(locale, key, interpolations)
translation = ActiveRecord::Translation.new :locale => locale.to_s, :key => key
translation.interpolations = interpolations
translation.save
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/missing.rb line 50
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::ActiveRecord::Missing