mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
forgot converting one returning
This commit is contained in:
parent
ceda51b5bf
commit
ba4217c6ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue