How to extend ActionMailer

James Byrne wrote:

I wish to extend ActionMailer::Base by method chaining a class instance
variable:

I was ever so close:

class ActionMailer::Base

  class << self

    def self.include(base)

       base.alias_method_chain :method_name, :my_method

       def method_name_with_my_method
         ...
         method_name_without_my_method
       end
    end
  end
end