diff options
Diffstat (limited to 'rubocop/cop/scalability/bulk_perform_with_context.rb')
-rw-r--r-- | rubocop/cop/scalability/bulk_perform_with_context.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/scalability/bulk_perform_with_context.rb b/rubocop/cop/scalability/bulk_perform_with_context.rb index bb944b2ad62..a31c20d149b 100644 --- a/rubocop/cop/scalability/bulk_perform_with_context.rb +++ b/rubocop/cop/scalability/bulk_perform_with_context.rb @@ -6,7 +6,7 @@ require_relative '../../code_reuse_helpers' module RuboCop module Cop module Scalability - class BulkPerformWithContext < RuboCop::Cop::Cop + class BulkPerformWithContext < RuboCop::Cop::Base include RuboCop::MigrationHelpers include RuboCop::CodeReuseHelpers @@ -34,7 +34,7 @@ module RuboCop return unless schedules_in_batch_without_context?(node) return if scheduled_for_background_migration?(node) - add_offense(node, location: :expression) + add_offense(node) end private |