13 lines
315 B
Ruby
13 lines
315 B
Ruby
class Event < ApplicationRecord
|
|
THREADABLE_ACTIONS = %w[ assigned boosted created staged unstaged ]
|
|
|
|
include Assignments, Stages
|
|
|
|
belongs_to :creator, class_name: "User"
|
|
belongs_to :bubble, touch: true
|
|
|
|
has_one :account, through: :creator
|
|
|
|
scope :threadable, -> { where action: THREADABLE_ACTIONS }
|
|
end
|