Sha256: bec1f44049e006996ae36de1f71088fd34138320e9997734f9f3821707f919fb

Contents?: true

Size: 269 Bytes

Versions: 75

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module ActionView
  module Helpers
    module Tags # :nodoc:
      class MonthField < DatetimeField # :nodoc:
        private
          def format_date(value)
            value&.strftime("%Y-%m")
          end
      end
    end
  end
end

Version data entries

75 entries across 71 versions & 6 rubygems

Version Path
actionview-7.0.3 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.2.4 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.5.1 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.5 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.2.3 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.4.7 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.2.2 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.4.6 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.4.5 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.2.1 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.2 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.1 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.0 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.4.4 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.0.rc3 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.4.3 lib/action_view/helpers/tags/month_field.rb
actionview-6.1.4.2 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.0.rc2 lib/action_view/helpers/tags/month_field.rb
actionview-7.0.0.rc1 lib/action_view/helpers/tags/month_field.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/actionview-6.1.4.1/lib/action_view/helpers/tags/month_field.rb