Skip to content

Commit a736ea5

Browse files
author
Lee Richmond
committed
Remove unused option
1 parent 510bf6d commit a736ea5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/jsonapi_compliable/sideload.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ def initialize(name, type: nil, resource: nil, polymorphic: false, primary_key:
4343
extend @resource_class.config[:adapter].sideloading_module
4444
end
4545

46-
# @api private
47-
def self.max_recursion
48-
@max_recursion || 2
49-
end
50-
51-
# Set maximum levels of sideload recursion
52-
# /authors?comments.authors would be one level
53-
# /authors?comments.authors.comments.authors would be two levels
54-
# etc
55-
#
56-
# Default max recursion is 2
57-
def self.max_recursion=(val)
58-
@max_recursion = val
59-
end
60-
6146
# @see #resource_class
6247
# @return [Resource] an instance of +#resource_class+
6348
def resource

0 commit comments

Comments
 (0)