Sha256: 05b57350f4c89fe436d8ebb096c7f761ff5756cfab0bfc558dbacf9cb3370c09

Contents?: true

Size: 269 Bytes

Versions: 74

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module ActionView
  module Helpers
    module Tags # :nodoc:
      class WeekField < DatetimeField # :nodoc:
        private
          def format_date(value)
            value&.strftime("%Y-W%V")
          end
      end
    end
  end
end

Version data entries

74 entries across 70 versions & 6 rubygems

Version Path
actionview-7.0.0.alpha2 lib/action_view/helpers/tags/week_field.rb
actionview-7.0.0.alpha1 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.4.1 lib/action_view/helpers/tags/week_field.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/actionview-6.1.4/lib/action_view/helpers/tags/week_field.rb
actionview-6.1.4 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.3.2 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.3.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.3 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.2.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.2 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.0 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.0.rc2 lib/action_view/helpers/tags/week_field.rb
actionview-6.1.0.rc1 lib/action_view/helpers/tags/week_field.rb