Module: ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | activemodel/lib/active_model/type/helpers/accepts_multiparameter_time.rb |
Instance Method Summary
Instance Method Details
#assert_valid_value(value)
[ GitHub ]# File 'activemodel/lib/active_model/type/helpers/accepts_multiparameter_time.rb', line 24
def assert_valid_value(value) if value.is_a?(Hash) value_from_multiparameter_assignment(value) else super(value) end end
#cast(value)
[ GitHub ]# File 'activemodel/lib/active_model/type/helpers/accepts_multiparameter_time.rb', line 16
def cast(value) if value.is_a?(Hash) value_from_multiparameter_assignment(value) else super(value) end end
#serialize(value)
[ GitHub ]# File 'activemodel/lib/active_model/type/helpers/accepts_multiparameter_time.rb', line 8
def serialize(value) serialize_cast_value(cast(value)) end
#serialize_cast_value(value)
[ GitHub ]# File 'activemodel/lib/active_model/type/helpers/accepts_multiparameter_time.rb', line 12
def serialize_cast_value(value) value end
#value_constructed_by_mass_assignment?(value) ⇒ Boolean
# File 'activemodel/lib/active_model/type/helpers/accepts_multiparameter_time.rb', line 32
def value_constructed_by_mass_assignment?(value) value.is_a?(Hash) end