Skip to content

Commit 2c62f07

Browse files
authored
Merge pull request #83 from koic/remove_unnecessary_code_to_suppress_warnings
Remove unnecessary code to suppress warnings
2 parents a003f94 + 182a1c9 commit 2c62f07

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)