Sha256: bd9c54cdb9acb2610f805a41d090f01a9f272aa16ca1c341c1c175b060f1a811

Contents?: true

Size: 962 Bytes

Versions: 25

Compression:

Stored size: 962 Bytes

Contents

class RakerMailer < ActionMailer::Base
  unloadable
  
  layout 'email_default'
  default_url_options[:host] = GlobalConfig.application_url
 
  def notification_feed_added(feed)
    recipients  GlobalConfig.admin_email
    from        "#{GlobalConfig.from_email_name} <#{GlobalConfig.from_email}>"
    sent_on     Time.now
    subject     I18n.t('muck.raker.new_global_feed', :application_name => GlobalConfig.application_name)
    body        :feed => feed,
                :application_name => GlobalConfig.application_name
  end

  def notification_oai_endpoint_added(oai_endpoint)
    recipients  GlobalConfig.admin_email
    from        "#{GlobalConfig.from_email_name} <#{GlobalConfig.from_email}>"
    sent_on     Time.now
    subject     I18n.t('muck.raker.new_global_feed', :application_name => GlobalConfig.application_name)
    body        :oai_endpoint => oai_endpoint,
                :application_name => GlobalConfig.application_name
  end
  
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
muck-raker-0.2.11 app/models/raker_mailer.rb
muck-raker-0.2.10 app/models/raker_mailer.rb
muck-raker-0.2.9 app/models/raker_mailer.rb
muck-raker-0.2.8 app/models/raker_mailer.rb
muck-raker-0.2.7 app/models/raker_mailer.rb
muck-raker-0.2.6 app/models/raker_mailer.rb
muck-raker-0.2.5 app/models/raker_mailer.rb
muck-raker-0.2.4 app/models/raker_mailer.rb
muck-raker-0.2.3 app/models/raker_mailer.rb
muck-raker-0.2.2 app/models/raker_mailer.rb
muck-raker-0.2.0 app/models/raker_mailer.rb
muck-raker-0.1.49 app/models/raker_mailer.rb
muck-raker-0.1.48 app/models/raker_mailer.rb
muck-raker-0.1.47 app/models/raker_mailer.rb
muck-raker-0.1.46 app/models/raker_mailer.rb
muck-raker-0.1.45 app/models/raker_mailer.rb
muck-raker-0.1.43 app/models/raker_mailer.rb
muck-raker-0.1.42 app/models/raker_mailer.rb
muck-raker-0.1.41 app/models/raker_mailer.rb
muck-raker-0.1.40 app/models/raker_mailer.rb