Sha256: b438934eeab495143b816569a28b4e7e196c9c4d9b2edc06d59422445ec2df54

Contents?: true

Size: 276 Bytes

Versions: 24

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

module ActionView
  module Helpers
    module Tags # :nodoc:
      class DateField < DatetimeField # :nodoc:
        private
          def format_date(value)
            value.try(:strftime, "%Y-%m-%d")
          end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
actionview-6.0.3.2 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.1 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.rc1 lib/action_view/helpers/tags/date_field.rb