Class: ActivityNotifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/activity_notifier.rb

Instance Method Summary collapse

Instance Method Details

#new_content_notification(activity, user) ⇒ Object



4
5
6
7
8
9
10
# File 'app/models/activity_notifier.rb', line 4

def new_content_notification(activity, user)
  recipients user.email
  subject "[#{activity.site.name} / #{activity.section.title}] " +
    I18n.t( :'adva.activity.notifier.new', :activity => activity.object.class )
  from "#{activity.site.name} <#{activity.site.email}>"
  body :activity => activity
end