mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix the thing I just broke :(
This commit is contained in:
parent
d1f625bf81
commit
b5d5dc19fc
2 changed files with 6 additions and 6 deletions
|
@ -14,12 +14,12 @@ module Fog
|
|||
|
||||
def all(options = {})
|
||||
merge_attributes(options)
|
||||
directory = directory.collection.get(
|
||||
parent = directory.collection.get(
|
||||
directory.name,
|
||||
options
|
||||
)
|
||||
if directory
|
||||
load(directory.files.map {|file| file.attributes})
|
||||
if parent
|
||||
load(parent.files.map {|file| file.attributes})
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
|
@ -13,12 +13,12 @@ module Fog
|
|||
|
||||
def all(options = {})
|
||||
merge_attributes(options)
|
||||
directory = directory.collection.get(
|
||||
parent = directory.collection.get(
|
||||
directory.name,
|
||||
options
|
||||
)
|
||||
if directory
|
||||
load(directory.files.map {|file| file.attributes})
|
||||
if parent
|
||||
load(parent.files.map {|file| file.attributes})
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue