Sha256: ff0e47ff816e960c144d1a1fcbc8e2f37fe59686fb14435a757e38c8935d6239

Contents?: true

Size: 244 Bytes

Versions: 103

Compression:

Stored size: 244 Bytes

Contents

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

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

Version data entries

103 entries across 99 versions & 9 rubygems

Version Path
actionview-4.2.1.rc2 lib/action_view/helpers/tags/week_field.rb
actionview-4.1.10.rc1 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.1.rc1 lib/action_view/helpers/tags/week_field.rb
activejob-lock-0.0.1 rails/actionview/lib/action_view/helpers/tags/week_field.rb
actionpack-4.0.13 lib/action_view/helpers/tags/week_field.rb
actionview-4.1.9 lib/action_view/helpers/tags/week_field.rb
actionview-4.1.9.rc1 lib/action_view/helpers/tags/week_field.rb
actionpack-4.0.13.rc1 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.0 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.0.rc3 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.0.rc2 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.0.rc1 lib/action_view/helpers/tags/week_field.rb
actionview-4.1.7.1 lib/action_view/helpers/tags/week_field.rb
actionpack-4.0.11.1 lib/action_view/helpers/tags/week_field.rb
actionview-4.1.8 lib/action_view/helpers/tags/week_field.rb
actionpack-4.0.12 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.0.beta4 lib/action_view/helpers/tags/week_field.rb
actionview-4.2.0.beta3 lib/action_view/helpers/tags/week_field.rb
actionview-4.1.7 lib/action_view/helpers/tags/week_field.rb
actionpack-4.0.11 lib/action_view/helpers/tags/week_field.rb