We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85027e commit 3c3578aCopy full SHA for 3c3578a
lib/active_model/serializer/adapter/json_api/pagination_links.rb
@@ -41,8 +41,7 @@ def pages_from
41
end
42
43
def url(options)
44
- self_link = options.fetch(:links) {{}}
45
- self_link.fetch(:self) {} ? options[:links][:self] : original_url
+ @url ||= options.fetch(:links, {}).fetch(:self, nil) || original_url
46
47
48
def original_url
0 commit comments