lib/para/inputs/nested_one_input.rb in para-0.9.4 vs lib/para/inputs/nested_one_input.rb in para-0.10.0

- old
+ new

@@ -15,14 +15,14 @@ unless resource # Build association without trying to save the new record resource = case association when ActiveRecord::Associations::HasOneThroughAssociation - association.replace(model.new) + association.send(:replace, model.new) when ActiveRecord::Associations::HasOneAssociation - association.replace(model.new, false) + association.send(:replace, model.new, false) else - association.replace(model.new) + association.send(:replace, model.new) end end locals = options.fetch(:locals, {})