Class: ActiveModel::Type::String
- Inherits:
-
ImmutableString
- Object
- Value
- ImmutableString
- ActiveModel::Type::String
- Defined in:
- lib/active_model/type/string.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Value
Instance Method Summary collapse
Methods inherited from ImmutableString
Methods inherited from Value
#==, #assert_valid_value, #binary?, #cast, #changed?, #deserialize, #hash, #initialize, #map, #serialize, #type, #type_cast_for_schema
Constructor Details
This class inherits a constructor from ActiveModel::Type::Value
Instance Method Details
#changed_in_place?(raw_old_value, new_value) ⇒ Boolean
6 7 8 9 10 |
# File 'lib/active_model/type/string.rb', line 6 def changed_in_place?(raw_old_value, new_value) if new_value.is_a?(::String) raw_old_value != new_value end end |