Skip to content

Commit acac529

Browse files
authored
Merge pull request #904 from nagirrab/fix/nested_resource_includes
Allow includes to follow namespacing
2 parents faf66b6 + 2f46f58 commit acac529

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)