1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

reload on a new_record? just returns self

This commit is contained in:
geemus 2010-04-27 16:34:04 -07:00
parent 363eed3b84
commit e4aa6bd244

View file

@ -84,8 +84,11 @@ module Fog
end end
def reload def reload
new_attributes = collection.get(identity).attributes if data = collection.get(identity)
merge_attributes(new_attributes) new_attributes = data.attributes
merge_attributes(new_attributes)
end
self
end end
def requires(*args) def requires(*args)