Files
fizzy/app/models/tag.rb
T
2024-11-25 16:25:42 -06:00

17 lines
274 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
def to_combobox_display
title
end
end