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:
parent
363eed3b84
commit
e4aa6bd244
1 changed files with 5 additions and 2 deletions
|
@ -84,8 +84,11 @@ module Fog
|
|||
end
|
||||
|
||||
def reload
|
||||
new_attributes = collection.get(identity).attributes
|
||||
merge_attributes(new_attributes)
|
||||
if data = collection.get(identity)
|
||||
new_attributes = data.attributes
|
||||
merge_attributes(new_attributes)
|
||||
end
|
||||
self
|
||||
end
|
||||
|
||||
def requires(*args)
|
||||
|
|
Loading…
Reference in a new issue