Methodaccess from GeneralMailer to ApplicationController

Hallo,

i defined a method (foo) in my application.rb, which inherits from
ActionController::Base) how do i access this method from my
GeneralMailer < ActionMailer::Base?

thx

On 12 Jan 2008, at 16:48, Lpp Rob wrote:

Hallo,

i defined a method (foo) in my application.rb, which inherits from
ActionController::Base) how do i access this method from my
GeneralMailer < ActionMailer::Base?

You can’t since GeneralMailer doesn’t inherit from
ApplicationController. You could however put foo in a module and
include that module in both GeneralMailer and ApplicationController.

Fred