Class: Anotifier::ResourceMailer

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

Instance Method Summary collapse

Instance Method Details

#new_resource(resource, sent_at = Time.now) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/models/anotifier/resource_mailer.rb', line 3

def new_resource(resource, sent_at = Time.now)
  subject       "[#{Anotifier::CONFIG[:application_name]}] New #{resource.class} was created"
  recipients    Anotifier::CONFIG[:notifications_email_address]
  from          Anotifier::CONFIG[:notifications_email_address]
  sent_on       sent_at
  content_type  "text/html"

  body          :resource => resource
end