Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

IntegerInput always has a default min of '0' and step is done through…

… validation_step now
  • Loading branch information...
commit 0ed2fdc46c4b1abf06134a88802059e48911629a 1 parent ee31af1
Justin French authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/formtastic/inputs/number_input.rb
4 lib/formtastic/inputs/number_input.rb
View
@@ -61,9 +61,9 @@ def to_html
def input_html_options
{
- :min => validation_min,
+ :min => validation_min || 0, # always need a min value
:max => validation_max,
- :step => validation_integer_only? ? 1 : nil
+ :step => validation_step || 1
}.merge(super)
end
Please sign in to comment.
Something went wrong with that request. Please try again.