Skip to content

Commit

Permalink
Merge b934f0b into 9214c78
Browse files Browse the repository at this point in the history
  • Loading branch information
giusepped committed Feb 10, 2017
2 parents 9214c78 + b934f0b commit 8ab8c73
Show file tree
Hide file tree
Showing 18 changed files with 406 additions and 185 deletions.
11 changes: 10 additions & 1 deletion lib/parliament/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ def filter(*types)
end
end

result = build_responses(filtered_objects)

types.size == 1 ? result.first : result
end

def build_responses(filtered_objects)
result = []

filtered_objects.each do |objects|
Parliament::Response.new(objects)
result << Parliament::Response.new(objects)
end
result
end
end
end

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ab8c73

Please sign in to comment.