Skip to content

Commit 2d0b899

Browse files
author
Lee Richmond
committed
Rename ams method
1 parent cc7a3f5 commit 2d0b899

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/jsonapi_compliable/base.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)