ActionMailer

I would like to do something like this

class MailHandler < ActionMailer
def one
end

def two
end
end

class InfoHandler < MailHandler
def three
end
end

class NewHandler < MailHandler
def three
end
end

The problem is that with the single inheritance I can not access the
ActionMailer methods. Any one have any idea how I can do this.

Thanks,
Amos

[email protected] wrote:

class InfoHandler < MailHandler
def three
end
end

class NewHandler < MailHandler
def three
end
end

module SnazzyMixin
def one
end

def two
end
end

class InfoHandler < AM
include SnazzyMixin

def three
end
end

class NewHandler < AM
include SnazzyMixin

def three
end
end

perhaps?

Does this allow the SnazzyMixin to have access to ActionMailer?

[email protected] wrote:

Does this allow the SnazzyMixin to have access to ActionMailer?

I guess I am a bit confused. If you have the following:

class A
def foo
“foo”
end
def snap
“snap”
end
end

class B < A
def bar
“bar”
end
def snap
“crackle”
end
end

a = A.new
b = B.new

a.foo # => “foo”
b.foo # => “foo”
b.bar # => “bar”
a.snap # => “snap”
b.snap # => “crackle”