1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/lib/simple_form/inputs/range_input.rb

15 lines
249 B
Ruby
Raw Normal View History

module SimpleForm
module Inputs
class RangeInput < NumericInput
def input
2011-12-04 10:15:27 -05:00
if html5?
input_html_options[:type] ||= "range"
input_html_options[:step] ||= 1
end
super
end
end
end
end