edge badge
Methods
A
C
D
S
T
Included Modules
Instance Public methods
accessor()
# File activerecord/lib/active_record/type/json.rb, line 24
def accessor
  ActiveRecord::Store::StringKeyedHashAccessor
end
changed_in_place?(raw_old_value, new_value)
# File activerecord/lib/active_record/type/json.rb, line 20
def changed_in_place?(raw_old_value, new_value)
  deserialize(raw_old_value) != new_value
end
deserialize(value)
# File activerecord/lib/active_record/type/json.rb, line 11
def deserialize(value)
  return value unless value.is_a?(::String)
  ActiveSupport::JSON.decode(value) rescue nil
end
serialize(value)
# File activerecord/lib/active_record/type/json.rb, line 16
def serialize(value)
  ActiveSupport::JSON.encode(value) unless value.nil?
end
type()
# File activerecord/lib/active_record/type/json.rb, line 7
def type
  :json
end