13 lines
231 B
Ruby
13 lines
231 B
Ruby
class Tag < ApplicationRecord
|
|
include Filterable
|
|
|
|
belongs_to :account, default: -> { Current.account }
|
|
|
|
has_many :taggings, dependent: :destroy
|
|
has_many :bubbles, through: :taggings
|
|
|
|
def hashtag
|
|
"#" + title
|
|
end
|
|
end
|