Sha256: 702ebefd69ddd4b1bd64d3aca3e177cd90adfc4006c7e41ae657f8f6b46808be
Contents?: true
Size: 374 Bytes
Versions: 27
Compression:
Stored size: 374 Bytes
Contents
require "active_model/type/immutable_string" module ActiveModel module Type class String < ImmutableString # :nodoc: def changed_in_place?(raw_old_value, new_value) if new_value.is_a?(::String) raw_old_value != new_value end end private def cast_value(value) ::String.new(super) end end end end
Version data entries
27 entries across 26 versions & 5 rubygems