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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs