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 f6fe0c8 commit 2e87c8eCopy full SHA for 2e87c8e
lib/active_model/serializer/links.rb
@@ -20,9 +20,9 @@ def inherited(base)
20
21
# Define a link on a serializer.
22
# @example
23
- # link :self { "/posts/#{object.id}" }
+ # link :self { "//example.com/posts/#{object.id}" }
24
25
- # link :self, "/user"
+ # link :self, "//example.com/user"
26
#
27
def link(name, value = nil, &block)
28
_links[name] = block || value
0 commit comments