Files
fizzy/app/models/event/particulars.rb
T
Jorge Manrubia 9b4169c7ca Scope data by account
With a single database this problem is not as bad, but it feels
safer to do things right. Also, not everyone in an account has access
to all the bubbles.
2025-04-07 13:09:49 +02:00

16 lines
325 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 ||= account.users.where id: assignee_ids
end
def comment
@comment ||= account.comments.find_by(id: comment_id)
end
end