b0deafc53e
* all the good changes * follows * dont send duplicates * remove follow_type for now * dont add all the extra stuff we're not implementing yet * refactor * lots of fixes * Delete activity.html.erb * Delete activity.text.erb * Update 20170209215819_create_follows.rb * Update schema.rb * Update mapping.rb * Update mailboxer.rb
17 lines
445 B
Ruby
17 lines
445 B
Ruby
# frozen_string_literal: true
|
|
class TopicMailer < ApplicationMailer
|
|
include TopicMailerHelper
|
|
default from: 'team@metamaps.cc'
|
|
|
|
def added_to_map(event, user)
|
|
@entity = event.eventable
|
|
@event = event
|
|
mail(to: user.email, subject: added_to_map_subject(@entity, event.map))
|
|
end
|
|
|
|
def connected(synapse, topic, user)
|
|
@entity = topic
|
|
@event = synapse
|
|
mail(to: user.email, subject: connected_subject(topic))
|
|
end
|
|
end
|