Fix html validator on numberfield

This commit is contained in:
benji 2015-03-10 12:14:54 +01:00
parent a0a5785115
commit 3a11861bb0

View file

@ -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)