Skip to content

Commit 298d1fc

Browse files
nagirrablgebhardt
authored andcommitted
Allow includes to follow namespacing
(cherry picked from commit 2f46f58)
1 parent d740bf7 commit 298d1fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/request_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def check_include(resource_klass, include_parts)
201201
relationship = resource_klass._relationship(relationship_name)
202202
if relationship && format_key(relationship_name) == include_parts.first
203203
unless include_parts.last.empty?
204-
check_include(Resource.resource_for(@resource_klass.module_path + relationship.class_name.to_s.underscore), include_parts.last.partition('.'))
204+
check_include(Resource.resource_for(resource_klass.module_path + relationship.class_name.to_s.underscore), include_parts.last.partition('.'))
205205
end
206206
else
207207
@errors.concat(JSONAPI::Exceptions::InvalidInclude.new(format_key(resource_klass._type),

0 commit comments

Comments
 (0)