class HumanAttributes::Formatters::Date

Public Instance Methods

apply(_instance, value) click to toggle source
# File lib/human_attributes/formatters/date.rb, line 4
def apply(_instance, value)
  I18n.l(value.to_date, options)
rescue
  nil
end