Skip to content

Commit eabc726

Browse files
authored
Merge pull request #228 from lanej/failed-reload
fix nil fetch on object reload
2 parents 7bd7aef + 8d0a0b3 commit eabc726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/fog/core/model.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def reload
4646

4747
object = collection.get(identity)
4848

49+
return unless object
50+
4951
merge_attributes(object.all_associations_and_attributes)
5052

5153
self

0 commit comments

Comments
 (0)