forgot converting one returning

This commit is contained in:
Reinier Balt 2011-06-09 17:08:20 +02:00
parent ceda51b5bf
commit ba4217c6ed

View file

@ -35,7 +35,7 @@ module ActiveRecord
end.flatten]
# allocate and assign values
returning(klass.allocate) do |obj|
klass.allocate.tap do |obj|
obj.instance_variable_set("@attributes", record)
obj.instance_variable_set("@attributes_cache", Hash.new)