Sha256: db47bbbf54eb92ed4f664976a30fdf22de4f73d6aac482ecc6eac7997b0bba0f

Contents?: true

Size: 436 Bytes

Versions: 7

Compression:

Stored size: 436 Bytes

Contents

class DateRangeInput < ActiveAdmin::Inputs::Filters::DateRangeInput
  if instance_methods(true).include?(:input_html_options_for)
    def input_html_options
      super.except(:maxlength, :size).merge(autocomplete: 'off')
    end
  else
    def input_html_options(input_name = gt_input_name, placeholder = gt_input_placeholder)
      super(input_name, placeholder).except(:maxlength, :size).merge(autocomplete: 'off')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activeadmin_addons-2.0.0.beta.3 app/inputs/date_range_input.rb
activeadmin_addons-1.10.1 app/inputs/date_range_input.rb
activeadmin_addons-2.0.0.beta.2 app/inputs/date_range_input.rb
activeadmin_addons-2.0.0.beta.0 app/inputs/date_range_input.rb
activeadmin_addons-1.10.0 app/inputs/date_range_input.rb
activeadmin_addons-1.9.0 app/inputs/date_range_input.rb
activeadmin_addons-1.8.3 app/inputs/date_range_input.rb