class Koine::Attributes::Adapter::Date
Private Instance Methods
coerce_not_nil(date)
click to toggle source
# File lib/koine/attributes/adapter/date.rb, line 9 def coerce_not_nil(date) wrap_errors do secure do next date if date.is_a?(::Date) next date.to_date if date.is_a?(::Time) ::Date.parse(date) end end end