mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
re: RuboCop - Disable Style/PredicateName rule for public API methods
This commit is contained in:
parent
ce168f9414
commit
af959b0273
@ -39,7 +39,7 @@ module ActiveModel
|
|||||||
# @example
|
# @example
|
||||||
# has_many :comments, serializer: CommentSummarySerializer
|
# has_many :comments, serializer: CommentSummarySerializer
|
||||||
#
|
#
|
||||||
def has_many(name, options = {}, &block)
|
def has_many(name, options = {}, &block) # rubocop:disable Style/PredicateName
|
||||||
associate(HasManyReflection.new(name, options, block))
|
associate(HasManyReflection.new(name, options, block))
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ module ActiveModel
|
|||||||
# @example
|
# @example
|
||||||
# has_one :author, serializer: AuthorSerializer
|
# has_one :author, serializer: AuthorSerializer
|
||||||
#
|
#
|
||||||
def has_one(name, options = {}, &block)
|
def has_one(name, options = {}, &block) # rubocop:disable Style/PredicateName
|
||||||
associate(HasOneReflection.new(name, options, block))
|
associate(HasOneReflection.new(name, options, block))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user