Sha256: f5a87c1278c41f62828b8d94b436db1ac2b9d2a3bbcaee0f5df2104fca423709

Contents?: true

Size: 269 Bytes

Versions: 2

Compression:

Stored size: 269 Bytes

Contents

module SimpleFormWithClientValidation
  module Inputs
    class RangeInput < NumericInput
      def input
        if html5?
          input_html_options[:type] ||= "range"
          input_html_options[:step] ||= 1
        end

        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_form_with_client_validation-0.0.2 lib/simple_form_with_client_validation/inputs/range_input.rb
simple_form_with_client_validation-0.0.0 lib/simple_form_with_client_validation/inputs/range_input.rb