Fix comment.

This commit is contained in:
Lucas Hosseini 2016-01-13 05:41:32 +01:00
parent f6fe0c8aa3
commit 2e87c8effe

View File

@ -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