Skip to content

Commit

Permalink
Remove unnecessary code to suppress warnings
Browse files Browse the repository at this point in the history
Follow up rubocop#80.
(Thank you for this PR that solved issue rubocop#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.
  • Loading branch information
koic committed Jun 27, 2019
1 parent a003f94 commit 182a1c9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/rubocop/cop/rails_cops.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# frozen_string_literal: true

module RuboCop
# RuboCop included the Rails cops directly before version 1.0.0.
# We can remove them to avoid warnings about redefining constants.
module Cop
remove_const('Rails') if const_defined?('Rails', false)
end
end

require_relative 'mixin/target_rails_version'

require_relative 'rails/action_filter'
Expand Down

0 comments on commit 182a1c9

Please sign in to comment.