Class: ActiveDateRange::DateRangeType
- Inherits:
-
ActiveModel::Type::String
- Object
- ActiveModel::Type::String
- ActiveDateRange::DateRangeType
- Defined in:
- lib/active_date_range/active_model_type.rb
Instance Method Summary collapse
Instance Method Details
#cast(value) ⇒ Object
5 6 7 |
# File 'lib/active_date_range/active_model_type.rb', line 5 def cast(value) ActiveDateRange::DateRange.parse(value) end |