metamaps--metamaps/app/models/webhooks/slack/synapse_added_to_map.rb
2017-11-25 11:18:32 -08:00

8 lines
343 B
Ruby

# frozen_string_literal: true
class Webhooks::Slack::SynapseAddedToMap < Webhooks::Slack::Base
def text
connector = eventable.desc.empty? ? '->' : eventable.desc
"\"*#{eventable.topic1.name}* #{connector} *#{eventable.topic2.name}*\" was added as a connection by *#{event.user.name}* to the map *#{view_map_on_metamaps}*"
end
end