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!
5353
5454 def render_jsonapi ( scope , opts = { } )
5555 scoped = Util ::Scoping . apply? ( self , scope , opts . delete ( :scope ) ) ? jsonapi_scope ( scope ) : scope
56- options = default_ams_options
56+ options = default_jsonapi_render_options
5757 options [ :include ] = forced_includes || Util ::IncludeParams . scrub ( self )
5858 options [ :jsonapi ] = JsonapiCompliable ::Util ::Pagination . zero? ( params ) ? [ ] : scoped
5959 options [ :fields ] = Util ::FieldParams . fieldset ( params , :fields ) if params [ :fields ]
@@ -68,8 +68,8 @@ def render_jsonapi(scope, opts = {})
6868 end
6969
7070 # 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
7373 { } . tap do |options |
7474 end
7575 end
You can’t perform that action at this time.
0 commit comments