Skip to content

Commit a408f18

Browse files
committed
fix JSONAPI_PAGE_SIZE const get
1 parent 5439110 commit a408f18

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/jsonapi/pagination.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def jsonapi_pagination_params
105105
def jsonapi_page_size(pagination_params)
106106
per_page = pagination_params[:size].to_f.to_i
107107

108-
return self.class
109-
.const_get(:JSONAPI_PAGE_SIZE)
110-
.to_i if per_page < 1
108+
return JSONAPI_PAGE_SIZE if per_page < 1
111109

112110
per_page
113111
end

0 commit comments

Comments
 (0)