Add featured tag add/remove activity handler (#19408)
This commit is contained in:
parent
7c152acb2c
commit
1d34eff63f
3 changed files with 47 additions and 2 deletions
|
@ -22,6 +22,8 @@ class FeaturedTag < ApplicationRecord
|
|||
before_create :set_tag
|
||||
before_create :reset_data
|
||||
|
||||
scope :by_name, ->(name) { joins(:tag).where(tag: { name: HashtagNormalizer.new.normalize(name) }) }
|
||||
|
||||
delegate :display_name, to: :tag
|
||||
|
||||
attr_writer :name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue