Skip to content

Commit

Permalink
Use ValidationHelper#range_options_for in #numeric_input and return
Browse files Browse the repository at this point in the history
number_field with range-aware options.
  • Loading branch information
farnoy committed Feb 1, 2011
1 parent 3067c85 commit cd55b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/formtastic/inputs/numeric_input.rb
Expand Up @@ -8,8 +8,8 @@ module NumericInput

# Outputs a label and standard Rails text field inside the wrapper.
def numeric_input(method, options)
basic_input_helper(:text_field, :numeric, method, options)
basic_input_helper(:number_field, :numeric, method, range_options_for(method, options))
end
end
end
end
end

0 comments on commit cd55b01

Please sign in to comment.