Sha256: 65c631f9b5cbe6796f2b5c6f6c77427be6f7d271ae9d8a691e7b42dc44610fcd

Contents?: true

Size: 275 Bytes

Versions: 115

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

module ActionView
  module Helpers
    module Tags # :nodoc:
      class WeekField < DatetimeField # :nodoc:
        private

          def format_date(value)
            value.try(:strftime, "%Y-W%V")
          end
      end
    end
  end
end

Version data entries

115 entries across 107 versions & 8 rubygems

Version Path
actionview-5.2.8.1 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.8 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.7.1 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.7 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.6.3 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.6.2 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.6.1 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.6 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.4.6 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.5 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.4.5 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.4.4 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.4.3 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.2.2 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.4.2 lib/action_view/helpers/tags/week_field.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.1/lib/action_view/helpers/tags/week_field.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.1/lib/action_view/helpers/tags/week_field.rb
actionview-6.0.2.1 lib/action_view/helpers/tags/week_field.rb
actionview-5.2.4.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.2 lib/action_view/helpers/tags/week_field.rb