lib/reform/form/active_model.rb in reform-0.2.2 vs lib/reform/form/active_model.rb in reform-0.2.3

- old
+ new

@@ -6,11 +6,11 @@ end end module ClassMethods def property(name, options={}) - add_nested_attribute_compat(name) if block_given? # TODO: fix that in Rails FB#1832 work. super + add_nested_attribute_compat(name) if options[:form] # TODO: fix that in Rails FB#1832 work. end private # The Rails FormBuilder "detects" nested attributes (which is what we want) by checking existance of a setter method. def add_nested_attribute_compat(name)