Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit be225adafbec267353fa7260179b0ce5a72e4283 1 parent a43a9c8
Carlhuda authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  actionmailer/lib/action_mailer/base.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.