lib/siteleaf/collection.rb in siteleaf-2.0.2 vs lib/siteleaf/collection.rb in siteleaf-2.1.0
- old
+ new
@@ -20,16 +20,16 @@
Site.find(site_id)
end
def documents
result = Client.get "#{entity_endpoint}/documents"
- result.map { |r| Document.new(r) } if result.parsed_response.is_a? Array
+ result.map { |r| Document.new(r) } if result.is_a? Array
end
def files
result = Client.get "#{entity_endpoint}/files"
- result.map { |r| File.new(r) } if result.parsed_response.is_a? Array
+ result.map { |r| File.new(r) } if result.is_a? Array
end
def output?
output == true
end
@@ -37,6 +37,6 @@
def filename
path
end
end
-end
\ No newline at end of file
+end