mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Fix comment.
This commit is contained in:
parent
f6fe0c8aa3
commit
2e87c8effe
@ -20,9 +20,9 @@ module ActiveModel
|
|||||||
|
|
||||||
# Define a link on a serializer.
|
# Define a link on a serializer.
|
||||||
# @example
|
# @example
|
||||||
# link :self { "/posts/#{object.id}" }
|
# link :self { "//example.com/posts/#{object.id}" }
|
||||||
# @example
|
# @example
|
||||||
# link :self, "/user"
|
# link :self, "//example.com/user"
|
||||||
#
|
#
|
||||||
def link(name, value = nil, &block)
|
def link(name, value = nil, &block)
|
||||||
_links[name] = block || value
|
_links[name] = block || value
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user