if defined?(ActionMailer) and defined?(ActionMailer::Base) class ActionMailer::Base def word_for(id, *p) WhowishWord.word_for(mailer_name + "/" + @template+".html.erb",id,*p) end end end