Skip to content

Commit 182a1c9

Browse files
committed
Remove unnecessary code to suppress warnings
Follow up #80. (Thank you for this PR that solved issue #79 early.) Rails cops has been removed from RuboCop 0.72. https://github.com/rubocop-hq/rubocop/releases/tag/v0.72.0 As a result of verification, the code to guard a warning is not necessary already.
1 parent a003f94 commit 182a1c9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/rubocop/cop/rails_cops.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# frozen_string_literal: true
22

3-
module RuboCop
4-
# RuboCop included the Rails cops directly before version 1.0.0.
5-
# We can remove them to avoid warnings about redefining constants.
6-
module Cop
7-
remove_const('Rails') if const_defined?('Rails', false)
8-
end
9-
end
10-
113
require_relative 'mixin/target_rails_version'
124

135
require_relative 'rails/action_filter'

0 commit comments

Comments
 (0)