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,9 +84,12 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def reload
|
def reload
|
||||||
new_attributes = collection.get(identity).attributes
|
if data = collection.get(identity)
|
||||||
|
new_attributes = data.attributes
|
||||||
merge_attributes(new_attributes)
|
merge_attributes(new_attributes)
|
||||||
end
|
end
|
||||||
|
self
|
||||||
|
end
|
||||||
|
|
||||||
def requires(*args)
|
def requires(*args)
|
||||||
missing = []
|
missing = []
|
||||||
|
|
Loading…
Reference in a new issue