Fix html validator on numberfield
This commit is contained in:
parent
a0a5785115
commit
3a11861bb0
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder
|
|||
|
||||
def price_field(name, options = {})
|
||||
options[:min] ||= 0
|
||||
options[:step] ||= 0.01
|
||||
# if object.is_a?(ActiveRecord::Base)
|
||||
# options[:value] ||= object[name]
|
||||
if object.respond_to?(name)
|
||||
|
|
Loading…
Reference in a new issue