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 = {})
|
def all(options = {})
|
||||||
merge_attributes(options)
|
merge_attributes(options)
|
||||||
directory = directory.collection.get(
|
parent = directory.collection.get(
|
||||||
directory.name,
|
directory.name,
|
||||||
options
|
options
|
||||||
)
|
)
|
||||||
if directory
|
if parent
|
||||||
load(directory.files.map {|file| file.attributes})
|
load(parent.files.map {|file| file.attributes})
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,12 +13,12 @@ module Fog
|
||||||
|
|
||||||
def all(options = {})
|
def all(options = {})
|
||||||
merge_attributes(options)
|
merge_attributes(options)
|
||||||
directory = directory.collection.get(
|
parent = directory.collection.get(
|
||||||
directory.name,
|
directory.name,
|
||||||
options
|
options
|
||||||
)
|
)
|
||||||
if directory
|
if parent
|
||||||
load(directory.files.map {|file| file.attributes})
|
load(parent.files.map {|file| file.attributes})
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue