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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Amos.L.King-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> 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 > endmodule 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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Amos.L.King-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-04 19:19 UTC
Re: ActionMailer
Does this allow the SnazzyMixin to have access to ActionMailer? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Amos.L.King-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Amos.L.King-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-04 22:44 UTC
Re: ActionMailer
I don''t know what happened. I created a test to show, but when I ran it it worked. I guess when I get back home I will have to look at my code and see what I missed. This 26k connection I have at home sucks. I moved into the middle of the country last year so I only try to ask questions on my break at work. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
how to check password confirmity. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---