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.6.1 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.6 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.5.1 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.5 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.8 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.7 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.6 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.5 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.4 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.3 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.2 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4.1 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.4 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.7 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.6 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.5 lib/action_view/helpers/tags/date_field.rb
trusty-cms-4.2.1 vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/date_field.rb
trusty-cms-4.2 vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.4 lib/action_view/helpers/tags/date_field.rb
actionview-6.0.3.3 lib/action_view/helpers/tags/date_field.rb