Method: Engine2::TypeInfo#decimal_date
- Defined in:
- lib/engine2/type_info.rb
#decimal_date(field, format = , model_format = "yyyyMMdd") ⇒ Object
134 135 136 137 138 139 140 141 |
# File 'lib/engine2/type_info.rb', line 134 def decimal_date field, format = LOCS[:default_date_format], model_format = "yyyyMMdd" modify_field field do |info| info[:type] = :decimal_date info[:format] = format info[:model_format] = model_format info[:validations][:decimal_date] = true end end |