Sha256: 27f154429b002b00bfcab13d77be1664c5a896cca8106618b4819b78d7151b98

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 MonthField < DatetimeField # :nodoc:
        private
          def format_date(value)
            value.try(:strftime, "%Y-%m")
          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/month_field.rb
actionview-6.0.6 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.5.1 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.5 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.8 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.7 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.6 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.5 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.4 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.3 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.2 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4.1 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.4 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.3.7 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.3.6 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.3.5 lib/action_view/helpers/tags/month_field.rb
trusty-cms-4.2.1 vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/month_field.rb
trusty-cms-4.2 vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/month_field.rb
actionview-6.0.3.4 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.3.3 lib/action_view/helpers/tags/month_field.rb