lib/rubocop/cop/polymorphic_associations.rb in gitlab-styles-8.0.0 vs lib/rubocop/cop/polymorphic_associations.rb in gitlab-styles-9.0.0
- old
+ new
@@ -3,10 +3,10 @@
require_relative '../../gitlab/styles/rubocop/model_helpers'
module Rubocop
module Cop
# Cop that prevents the use of polymorphic associations
- class PolymorphicAssociations < RuboCop::Cop::Cop
+ class PolymorphicAssociations < RuboCop::Cop::Base
include Gitlab::Styles::Rubocop::ModelHelpers
MSG = 'Do not use polymorphic associations, use separate tables instead'
def on_send(node)