Sha256: 4e13de7a349d49aa3ece155e0aad124a7867c30d3a9f9fd66642c9b4765f6df4

Contents?: true

Size: 272 Bytes

Versions: 12

Compression:

Stored size: 272 Bytes

Contents

module SimpleForm
  module Inputs
    class RangeInput < NumericInput
      def input(wrapper_options = nil)
        if html5?
          input_html_options[:type] ||= "range"
          input_html_options[:step] ||= 1
        end

        super
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
simple_form-3.5.0 lib/simple_form/inputs/range_input.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simple_form-3.4.0/lib/simple_form/inputs/range_input.rb
simple_form-3.4.0 lib/simple_form/inputs/range_input.rb
simple_form-3.3.1 lib/simple_form/inputs/range_input.rb
simple_form-3.3.0 lib/simple_form/inputs/range_input.rb
simple_form-3.2.1 lib/simple_form/inputs/range_input.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/simple_form-3.2.0/lib/simple_form/inputs/range_input.rb
simple_form-3.2.0 lib/simple_form/inputs/range_input.rb
simple_form-3.1.1 lib/simple_form/inputs/range_input.rb
simple_form-3.1.0 lib/simple_form/inputs/range_input.rb
simple_form-3.1.0.rc2 lib/simple_form/inputs/range_input.rb
simple_form-3.1.0.rc1 lib/simple_form/inputs/range_input.rb