method

method_added

rails latest stable - Class: ActionMailer::TestCase

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.0.3) is shown here.

method_added(method)
public

No documentation available.

# File actionmailer/lib/action_mailer/test_case.rb, line 47
    def self.method_added(method)
      if method.to_s == 'setup'
        unless method_defined?(:setup_without_mailer)
          alias_method :setup_without_mailer, :setup
          define_method(:setup) do
            setup_with_mailer
            setup_without_mailer
          end
        end
      end
    end