mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
remove 'page object' on paginations links'
This commit is contained in:
parent
f7c77c1256
commit
b864302695
@ -23,10 +23,9 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def build_links(per_page)
|
||||
pages = pages_from.each_with_object({}) do |(key, value), hash|
|
||||
pages_from.each_with_object({}) do |(key, value), hash|
|
||||
hash[key] = "?page=#{value}&per_page=#{per_page}"
|
||||
end
|
||||
{ pages: pages } unless pages.empty?
|
||||
end
|
||||
|
||||
def pages_from
|
||||
|
||||
Loading…
Reference in New Issue
Block a user