Sha256: d4563a28a6f1cd2cd347f6aef9d130ae582a6ed386cf6af2669f2381e3f15cb6

Contents?: true

Size: 274 Bytes

Versions: 24

Compression:

Stored size: 274 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

24 entries across 24 versions & 2 rubygems

Version Path
actionview-6.0.6.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.6 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.5.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.5 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.8 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.7 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.6 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.5 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.4 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.3 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.2 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4.1 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.4 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.3.7 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.3.6 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.3.5 lib/action_view/helpers/tags/week_field.rb
trusty-cms-4.2.1 vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/week_field.rb
trusty-cms-4.2 vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/week_field.rb
actionview-6.0.3.4 lib/action_view/helpers/tags/week_field.rb
actionview-6.0.3.3 lib/action_view/helpers/tags/week_field.rb