Skip to content

Commit

Permalink
Merge pull request #1212 from shore-gmbh/allow-nil-include
Browse files Browse the repository at this point in the history
Allow empty include param
  • Loading branch information
lgebhardt committed Jan 9, 2019
2 parents 2292bde + 0108c12 commit 1a1b0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonapi/request_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def parse_include_directives(raw_include)

included_resources = []
begin
included_resources += CSV.parse_line(raw_include)
included_resources += Array(CSV.parse_line(raw_include))
rescue CSV::MalformedCSVError
fail JSONAPI::Exceptions::InvalidInclude.new(format_key(@resource_klass._type), raw_include)
end
Expand Down

0 comments on commit 1a1b0b5

Please sign in to comment.