File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def parse_fieldsets!
53
53
54
54
def render_jsonapi ( scope , opts = { } )
55
55
scoped = Util ::Scoping . apply? ( self , scope , opts . delete ( :scope ) ) ? jsonapi_scope ( scope ) : scope
56
- options = default_ams_options
56
+ options = default_jsonapi_render_options
57
57
options [ :include ] = forced_includes || Util ::IncludeParams . scrub ( self )
58
58
options [ :jsonapi ] = JsonapiCompliable ::Util ::Pagination . zero? ( params ) ? [ ] : scoped
59
59
options [ :fields ] = Util ::FieldParams . fieldset ( params , :fields ) if params [ :fields ]
@@ -68,8 +68,8 @@ def render_jsonapi(scope, opts = {})
68
68
end
69
69
70
70
# render_jsonapi(foo) equivalent to
71
- # render json : foo, ams_default_options
72
- def default_ams_options
71
+ # render jsonapi : foo, default_jsonapi_render_options
72
+ def default_jsonapi_render_options
73
73
{ } . tap do |options |
74
74
end
75
75
end
You can’t perform that action at this time.
0 commit comments