Skip to content

Commit

Permalink
IntegerInput always has a default min of '0' and step is done through…
Browse files Browse the repository at this point in the history
… validation_step now
  • Loading branch information
justinfrench committed Apr 9, 2011
1 parent ee31af1 commit 0ed2fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/formtastic/inputs/number_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0ed2fdc

Please sign in to comment.