Sha256: 23e9516bb9c9ef88d93cfe946643d684fa78f07b792795d62891bdd9dd6dfe4c
Contents?: true
Size: 472 Bytes
Versions: 38
Compression:
Stored size: 472 Bytes
Contents
module ActiveModel module Type module Helpers module Mutable # :nodoc: def cast(value) deserialize(serialize(value)) end # +raw_old_value+ will be the `_before_type_cast` version of the # value (likely a string). +new_value+ will be the current, type # cast value. def changed_in_place?(raw_old_value, new_value) raw_old_value != serialize(new_value) end end end end end
Version data entries
38 entries across 37 versions & 5 rubygems