Files
fizzy/app/models/event/particulars.rb
T
David Heinemeier Hansson 2f8a9bed0e There is only ever one account per database
So there is no protection in scoping things by account cc @jorgemanrubia
2025-04-12 11:30:28 +02:00

16 lines
306 B
Ruby

module Event::Particulars
extend ActiveSupport::Concern
included do
store_accessor :particulars, :assignee_ids, :comment_id, :stage_id, :stage_name
end
def assignees
@assignees ||= User.where id: assignee_ids
end
def comment
@comment ||= Comment.find_by id: comment_id
end
end