Class: InterpretDate::DateType
- Inherits:
-
ActiveRecord::Type::Date
- Object
- ActiveRecord::Type::Date
- InterpretDate::DateType
- Includes:
- InterpretDate
- Defined in:
- lib/interpret_date/date_type.rb
Constant Summary
Constants included from InterpretDate
Instance Method Summary collapse
Methods included from InterpretDate
#interpret_date, #interpret_dob_date
Instance Method Details
#cast(value) ⇒ Object
7 8 9 |
# File 'lib/interpret_date/date_type.rb', line 7 def cast(value) super(interpret_date(value) || value) end |