From 27793a543353afa30cdce49c83b46fce0500aab0 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 26 Feb 2014 11:33:27 -0300 Subject: [PATCH] rails3: remove unused code from plugin mailer class --- lib/noosfero/plugin/mailer_base.rb | 4 ---- 1 file changed, 0 insertions(+), 4 deletions(-) diff --git a/lib/noosfero/plugin/mailer_base.rb b/lib/noosfero/plugin/mailer_base.rb index 771a6a6..a5eb422 100644 --- a/lib/noosfero/plugin/mailer_base.rb +++ b/lib/noosfero/plugin/mailer_base.rb @@ -1,9 +1,5 @@ class Noosfero::Plugin::MailerBase < ActionMailer::Base - def self.inherited(child) - child.template_root = File.expand_path(Rails.root.join('plugins', child.plugin_name, 'views')) - end - def self.plugin_name name.split('::').first.gsub(/Plugin$/, '').underscore end -- libgit2 0.21.2