Skip to content

Commit 695d9f0

Browse files
committed
Removed errant type key re-formatting in parse_params
1 parent a13c57a commit 695d9f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def parse_params(params, allowed_fields)
281281
# Since we do not yet support polymorphic associations we will raise an error if the type does not match the
282282
# association's type.
283283
# ToDo: Support Polymorphic associations
284-
if links_object[:type] && (links_object[:type] != format_key(association.type).to_s)
284+
if links_object[:type] && (links_object[:type] != association.type.to_s)
285285
raise JSONAPI::Exceptions::TypeMismatch.new(links_object[:type])
286286
end
287287

0 commit comments

Comments
 (0)