lib/classy-inheritance.rb in johnsbrn-classy-inheritance-0.6.6 vs lib/classy-inheritance.rb in johnsbrn-classy-inheritance-0.6.7
- old
+ new
@@ -22,10 +22,9 @@
end
if replace_existing
replace(record, true)
else
- puts "test"
record[@reflection.primary_key_name] = @reflection.options.has_key?(:primary_key) ? @owner.send(@reflection.options[:primary_key]) : @owner.id unless @owner.new_record?
self.target = record
end
record