Sha256: 456b1e6af94f8ddce60b9bd3535557ab876fdbb1595991d2ce058788cca64858

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 MonthField < DatetimeField # :nodoc:
        private

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

Version data entries

115 entries across 107 versions & 8 rubygems

Version Path
jets-1.8.12 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.11 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.10 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
actionview-6.0.0.rc1 lib/action_view/helpers/tags/month_field.rb
actionview-5.2.3 lib/action_view/helpers/tags/month_field.rb
actionview-5.2.3.rc1 lib/action_view/helpers/tags/month_field.rb
actionview-6.0.0.beta3 lib/action_view/helpers/tags/month_field.rb
actionview-5.2.2.1 lib/action_view/helpers/tags/month_field.rb
jets-1.8.9 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.8 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
actionview-6.0.0.beta2 lib/action_view/helpers/tags/month_field.rb
jets-1.8.7 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.6 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.5 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.4 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.3 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.2 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.1 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.8.0 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb
jets-1.7.2 vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb