Permalink
Browse files

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

… validation_step now
  • Loading branch information...
1 parent ee31af1 commit 0ed2fdc46c4b1abf06134a88802059e48911629a @justinfrench justinfrench committed Apr 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/formtastic/inputs/number_input.rb
@@ -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

0 comments on commit 0ed2fdc

Please sign in to comment.