Move Rails/HABTM cop out of todo (#30118)
This commit is contained in:
parent
1e7d5d2957
commit
88882fbbee
4 changed files with 4 additions and 10 deletions
|
@ -21,8 +21,10 @@
|
|||
|
||||
class Tag < ApplicationRecord
|
||||
include Paginable
|
||||
# rubocop:disable Rails/HasAndBelongsToMany
|
||||
has_and_belongs_to_many :statuses
|
||||
has_and_belongs_to_many :accounts
|
||||
# rubocop:enable Rails/HasAndBelongsToMany
|
||||
|
||||
has_many :passive_relationships, class_name: 'TagFollow', inverse_of: :tag, dependent: :destroy
|
||||
has_many :featured_tags, dependent: :destroy, inverse_of: :tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue