Sha256: b91e8b05b4838b5eb3ebf98ad6e3afd6c764eb49a9f590779576207abd38f514

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

module ::Formtastic
  module Helpers
    module InputHelper

        alias_method :original_default_input_type, :default_input_type

        def default_input_type(method, options = {})
          input_type = original_default_input_type(method, options)
          input_type = :datepicker if input_type == :date_select
          input_type
        end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activeadmin_addons-0.2.7 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.6 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.5 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.4 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.3 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.2 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.1 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.2.0 lib/activeadmin_addons/support/set_datepicker.rb
activeadmin_addons-0.1.0 lib/activeadmin_addons/set_datepicker.rb
activeadmin_addons-0.0.3 lib/activeadmin_addons/set_datepicker.rb