Skip to content

Commit af959b0

Browse files
committed
re: RuboCop - Disable Style/PredicateName rule for public API methods
1 parent ce168f9 commit af959b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/active_model/serializer/associations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def inherited(base)
3939
# @example
4040
# has_many :comments, serializer: CommentSummarySerializer
4141
#
42-
def has_many(name, options = {}, &block)
42+
def has_many(name, options = {}, &block) # rubocop:disable Style/PredicateName
4343
associate(HasManyReflection.new(name, options, block))
4444
end
4545

@@ -61,7 +61,7 @@ def belongs_to(name, options = {}, &block)
6161
# @example
6262
# has_one :author, serializer: AuthorSerializer
6363
#
64-
def has_one(name, options = {}, &block)
64+
def has_one(name, options = {}, &block) # rubocop:disable Style/PredicateName
6565
associate(HasOneReflection.new(name, options, block))
6666
end
6767

0 commit comments

Comments
 (0)