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:
parent
761d1cf6b6
commit
7f38159f7b
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def reload
|
def reload
|
||||||
|
requires :identity
|
||||||
if data = collection.get(identity)
|
if data = collection.get(identity)
|
||||||
new_attributes = data.attributes
|
new_attributes = data.attributes
|
||||||
merge_attributes(new_attributes)
|
merge_attributes(new_attributes)
|
||||||
|
|
Loading…
Reference in a new issue