Class: ActiveModel::Type::DateTime
- Includes:
- Helpers::TimeValue
- Defined in:
- lib/active_model/type/date_time.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Value
Instance Method Summary collapse
Methods included from Helpers::TimeValue
#apply_seconds_precision, #default_timezone, #is_utc?, #type_cast_for_schema, #user_input_in_time_zone
Methods inherited from Value
#==, #assert_valid_value, #binary?, #cast, #changed?, #changed_in_place?, #deserialize, #force_equality?, #hash, #initialize, #map, #type_cast_for_schema, #value_constructed_by_mass_assignment?
Constructor Details
This class inherits a constructor from ActiveModel::Type::Value
Instance Method Details
#serialize(value) ⇒ Object
15 16 17 |
# File 'lib/active_model/type/date_time.rb', line 15 def serialize(value) super(cast(value)) end |
#type ⇒ Object
11 12 13 |
# File 'lib/active_model/type/date_time.rb', line 11 def type :datetime end |