lib/embedded_associations.rb in embedded_associations-0.0.1 vs lib/embedded_associations.rb in embedded_associations-0.0.2
- old
+ new
@@ -88,10 +88,9 @@
unless definition.is_a? Hash
definition = {definition => nil}
end
definition.each do |name, child_definition|
- binding.pry unless parent
reflection = parent.class.reflect_on_association(name)
attrs = parent_params && parent_params.delete(name.to_s)
if reflection.collection?
attrs ||= []