2016-12-16 21:51:52 +00:00
|
|
|
# frozen_string_literal: true
|
2017-01-24 00:30:13 +00:00
|
|
|
module Events
|
|
|
|
class TopicRemovedFromMap < Event
|
|
|
|
# after_create :notify_users!
|
2016-12-16 21:51:52 +00:00
|
|
|
|
2017-01-24 00:30:13 +00:00
|
|
|
def self.publish!(topic, map, user, meta)
|
|
|
|
create!(kind: 'topic_removed_from_map',
|
|
|
|
eventable: topic,
|
|
|
|
map: map,
|
|
|
|
user: user,
|
|
|
|
meta: meta)
|
|
|
|
end
|
2016-12-16 21:51:52 +00:00
|
|
|
end
|
|
|
|
end
|