Permalink
Browse files

Fix ActionMailer. The fact that ActionMailer::Base does not inherit f…

…rom AbstractController::Base is either a bug or we need to re-evaluate the requirements of the mixins.
  • Loading branch information...
1 parent a43a9c8 commit be225adafbec267353fa7260179b0ce5a72e4283 Carlhuda committed Dec 22, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionmailer/lib/action_mailer/base.rb
@@ -271,6 +271,8 @@ class Base
class_inheritable_accessor :view_paths
self.view_paths = []
+ attr_internal :formats
+
cattr_accessor :logger
@@raise_delivery_errors = true
@@ -452,6 +454,7 @@ def matches_dynamic_method?(method_name) #:nodoc:
# remain uninitialized (useful when you only need to invoke the "receive"
# method, for instance).
def initialize(method_name=nil, *parameters) #:nodoc:
+ @_formats = []
@_response_body = nil
super()
create!(method_name, *parameters) if method_name

0 comments on commit be225ad

Please sign in to comment.