We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13c57a commit 695d9f0Copy full SHA for 695d9f0
1 file changed
lib/jsonapi/request.rb
@@ -281,7 +281,7 @@ def parse_params(params, allowed_fields)
281
# Since we do not yet support polymorphic associations we will raise an error if the type does not match the
282
# association's type.
283
# ToDo: Support Polymorphic associations
284
- if links_object[:type] && (links_object[:type] != format_key(association.type).to_s)
+ if links_object[:type] && (links_object[:type] != association.type.to_s)
285
raise JSONAPI::Exceptions::TypeMismatch.new(links_object[:type])
286
end
287
0 commit comments