diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-15 11:59:28 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-15 11:59:28 -0700 |
commit | 5314abed182450dbdcc25ebe601a2bbdf4cb926f (patch) | |
tree | 83d98fc8fa038ca525aecf4c4d293ae678ff2e99 /actionpack | |
parent | 80d1e2778860d1825d749aad274e70e0ea810bc6 (diff) | |
download | rails-5314abed182450dbdcc25ebe601a2bbdf4cb926f.tar.gz rails-5314abed182450dbdcc25ebe601a2bbdf4cb926f.tar.bz2 rails-5314abed182450dbdcc25ebe601a2bbdf4cb926f.zip |
Keep ActionMailer using the old layouts code until it gets refactored.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/Rakefile | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller.rb | 1 | ||||
-rw-r--r-- | actionpack/lib/action_controller/old_base/layout.rb | 8 |
3 files changed, 10 insertions, 1 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile index 53387d305c..142c72ce6b 100644 --- a/actionpack/Rakefile +++ b/actionpack/Rakefile @@ -22,7 +22,7 @@ task :default => [ :test ] # Run the unit tests desc "Run all unit tests" -task :test => [:test_action_pack, :test_active_record_integration, :test_new_base, :test_new_base_on_old_tests] +task :test => [:test_action_pack, :test_active_record_integration, :test_new_base] test_lib_dirs = ENV["NEW"] ? ["test/new_base"] : [] test_lib_dirs.push "test", "test/lib" diff --git a/actionpack/lib/action_controller.rb b/actionpack/lib/action_controller.rb index 44724fc9cb..8e5e5736ab 100644 --- a/actionpack/lib/action_controller.rb +++ b/actionpack/lib/action_controller.rb @@ -42,6 +42,7 @@ module ActionController end autoload :HTML, 'action_controller/vendor/html-scanner' +autoload :AbstractController, 'action_controller/abstract' require 'action_dispatch' require 'action_view' diff --git a/actionpack/lib/action_controller/old_base/layout.rb b/actionpack/lib/action_controller/old_base/layout.rb index cf5f46a32b..3046e082d9 100644 --- a/actionpack/lib/action_controller/old_base/layout.rb +++ b/actionpack/lib/action_controller/old_base/layout.rb @@ -1,8 +1,16 @@ require 'active_support/core_ext/enumerable' +require 'active_support/core_ext/class' require 'active_support/core_ext/class/delegating_attributes' require 'active_support/core_ext/class/inheritable_attributes' module ActionController #:nodoc: + # MegasuperultraHAX + # plz refactor ActionMailer + class Base + @@exempt_from_layout = [ActionView::TemplateHandlers::RJS] + cattr_accessor :exempt_from_layout + end + module Layout #:nodoc: def self.included(base) base.extend(ClassMethods) |