class ActiveRecord::Type::I18n

Public Instance Methods

deserialize(value) click to toggle source
Calls superclass method
# File lib/active_record/type/i18n.rb, line 8
def deserialize(value)
  if super && super.respond_to?(:[])
    super[::I18n.locale.to_s]
  else
    value
  end
end
type() click to toggle source
# File lib/active_record/type/i18n.rb, line 4
def type
  :i18n
end