diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-06-02 14:29:30 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-06-07 17:36:55 +0200 |
commit | 5819ca1a249d1daf3b4feb655c217c98a1b70225 (patch) | |
tree | 799459af23e425921e5368693ee3d0a258c426bb /app/models/member.rb | |
parent | 44d65c36dbe2f38eacb1858a99996c025b755937 (diff) | |
download | gitlab-ce-5819ca1a249d1daf3b4feb655c217c98a1b70225.tar.gz |
Added Cop to blacklist polymorphic associations
One should really use a separate table instead of using polymorphic
associations.
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for
more information.
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 29f9d61e870..788a32dd8e3 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -8,7 +8,7 @@ class Member < ActiveRecord::Base belongs_to :created_by, class_name: "User" belongs_to :user - belongs_to :source, polymorphic: true + belongs_to :source, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations delegate :name, :username, :email, to: :user, prefix: true |