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

model #reload should require identity

This commit is contained in:
geemus 2010-10-27 16:09:00 -07:00
parent 761d1cf6b6
commit 7f38159f7b

View file

@ -28,6 +28,7 @@ module Fog
end
def reload
requires :identity
if data = collection.get(identity)
new_attributes = data.attributes
merge_attributes(new_attributes)