Sha256: 28ae9f223af59d11a5a29ff46cc62680b00d28fd002e6cd79e1587adeae58194

Contents?: true

Size: 191 Bytes

Versions: 8

Compression:

Stored size: 191 Bytes

Contents

module HumanAttributes
  module Formatters
    class Date < Base
      def apply(_instance, value)
        I18n.l(value.to_date, options)
      rescue
        nil
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
human_attributes-0.7.1 lib/human_attributes/formatters/date.rb
human_attributes-0.7.0 lib/human_attributes/formatters/date.rb
human_attributes-0.6.0 lib/human_attributes/formatters/date.rb
human_attributes-0.5.0 lib/human_attributes/formatters/date.rb
human_attributes-0.4.0 lib/human_attributes/formatters/date.rb
human_attributes-0.3.1 lib/human_attributes/formatters/date.rb
human_attributes-0.3.0 lib/human_attributes/formatters/date.rb
human_attributes-0.2.0 lib/human_attributes/formatters/date.rb