9b4169c7ca
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.
16 lines
325 B
Ruby
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
|