cirandas.net

ref: master

app/mailers/noosfero/plugin/mailer_base.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class Noosfero::Plugin::MailerBase < ApplicationMailer

  def self.plugin_name
    name.split('::').first.gsub(/Plugin$/, '').underscore
  end

  def initialize_template_class(assigns)
    ActionView::Base.new(view_paths, assigns, self)
  end

end