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

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