From 4b08caf3300e7ba96e637075cfd4162ff70f6558 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 8 Apr 2007 21:24:48 +0000 Subject: Only load ActionController::UrlWriter if ActionController is present [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/lib/action_mailer/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/lib') diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 044ff46587..378168bc04 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -219,7 +219,7 @@ module ActionMailer #:nodoc: # @implicit_parts_order. class Base include AdvAttrAccessor, PartContainer - include ActionController::UrlWriter + include ActionController::UrlWriter if Object.const_defined?(:ActionController) # Action Mailer subclasses should be reloaded by the dispatcher in Rails # when Dependencies.mechanism = :load. -- cgit v1.2.3