mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
typos
This commit is contained in:
parent
0d3999c36d
commit
ca6c009273
@ -281,7 +281,7 @@ module ActiveModel
|
|||||||
#
|
#
|
||||||
def self.link(name, *args, &block)
|
def self.link(name, *args, &block)
|
||||||
options = args.extract_options!
|
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
|
# without block, we are creating a wrapping block
|
||||||
_links[name] = Link.new(name, options, block || ->(_serializer) { args.first })
|
_links[name] = Link.new(name, options, block || ->(_serializer) { args.first })
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,7 +2,7 @@ require 'active_model/serializer/field'
|
|||||||
|
|
||||||
module ActiveModel
|
module ActiveModel
|
||||||
class Serializer
|
class Serializer
|
||||||
# Holds all the data about an serializer link
|
# Holds all the data about a serializer link
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# class PostSerializer < ActiveModel::Serializer
|
# class PostSerializer < ActiveModel::Serializer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user