From f4b0193f424062db4dd2921aac815fc0836e883e Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Mon, 13 Nov 2023 16:12:30 +0800 Subject: [PATCH] * Disable a rubocop rule for a method overriding a parent method --- lib/sequel_rails/migrations.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sequel_rails/migrations.rb b/lib/sequel_rails/migrations.rb index e29db1c..8beaffb 100644 --- a/lib/sequel_rails/migrations.rb +++ b/lib/sequel_rails/migrations.rb @@ -105,6 +105,8 @@ def initialize(db, directory, opts = OPTS) private + # This is overriding parent method, no way to choose another method name + # rubocop:disable Naming/AccessorMethodName def get_migration_tuples up_mts = [] down_mts = [] @@ -127,5 +129,6 @@ def get_migration_tuples end up_mts + down_mts.reverse end + # rubocop:enable Naming/AccessorMethodName end end