1
0
Fork 0
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:
geemus (Wesley Beary) 2010-03-08 16:19:48 -08:00
parent d1f625bf81
commit b5d5dc19fc
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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