From af959b0273483fdd89b6fd03c9edcf6d3c5aa912 Mon Sep 17 00:00:00 2001 From: Alexey Dubovskoy Date: Mon, 20 Jun 2016 22:03:58 +0100 Subject: [PATCH] re: RuboCop - Disable Style/PredicateName rule for public API methods --- lib/active_model/serializer/associations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/active_model/serializer/associations.rb b/lib/active_model/serializer/associations.rb index dcad7ea7..14800922 100644 --- a/lib/active_model/serializer/associations.rb +++ b/lib/active_model/serializer/associations.rb @@ -39,7 +39,7 @@ module ActiveModel # @example # 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)) end @@ -61,7 +61,7 @@ module ActiveModel # @example # 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)) end