fb12c7e202
* feature/more.events * keep mapping.user as the creator * cleanup cruft and include slack notifs * capture topic and synapse updates, store the old values * avoid the mapping gets deleted problem * include an indicator of which values changed * style cleanup * remove the hack in favor of a legit way * updated schema file
12 lines
303 B
Ruby
12 lines
303 B
Ruby
# frozen_string_literal: true
|
|
class Events::SynapseAddedToMap < Event
|
|
# after_create :notify_users!
|
|
|
|
def self.publish!(synapse, map, user, meta)
|
|
create!(kind: 'synapse_added_to_map',
|
|
eventable: synapse,
|
|
map: map,
|
|
user: user,
|
|
meta: meta)
|
|
end
|
|
end
|