This commit is contained in:
Konstantin Munteanu
2018-09-06 10:45:31 +02:00
parent 0d3999c36d
commit ca6c009273
2 changed files with 2 additions and 2 deletions

View File

@@ -281,7 +281,7 @@ module ActiveModel
#
def self.link(name, *args, &block)
options = args.extract_options!
# For compatibility with the use cae of passing link directly as string argument
# For compatibility with the use case of passing link directly as string argument
# without block, we are creating a wrapping block
_links[name] = Link.new(name, options, block || ->(_serializer) { args.first })
end