aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/compatibility.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-11 12:45:26 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-11 12:45:26 -0700
commit6694bd46f59eb9b9b23afbd0d9484fd87e8fe350 (patch)
tree1ddeef04f0a15bd0d8957646f6d4b441df13bec8 /actionpack/lib/action_controller/new_base/compatibility.rb
parent94ee9d245289a36207847a684b51dbd1c7a6a4eb (diff)
downloadrails-6694bd46f59eb9b9b23afbd0d9484fd87e8fe350.tar.gz
rails-6694bd46f59eb9b9b23afbd0d9484fd87e8fe350.tar.bz2
rails-6694bd46f59eb9b9b23afbd0d9484fd87e8fe350.zip
Aliased AbstractController::ActionNotFound to ActionController::UnknownAction
Diffstat (limited to 'actionpack/lib/action_controller/new_base/compatibility.rb')
-rw-r--r--actionpack/lib/action_controller/new_base/compatibility.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/new_base/compatibility.rb b/actionpack/lib/action_controller/new_base/compatibility.rb
index 3b1a74ec0c..b6e15a4e0d 100644
--- a/actionpack/lib/action_controller/new_base/compatibility.rb
+++ b/actionpack/lib/action_controller/new_base/compatibility.rb
@@ -3,6 +3,9 @@ module ActionController
# Temporary hax
setup do
+ ::ActionController::UnknownAction = ::AbstractController::ActionNotFound
+ ::ActionController::DoubleRenderError = ::AbstractController::DoubleRenderError
+
cattr_accessor :session_options
self.send(:class_variable_set, "@@session_options", {})
@@ -31,11 +34,11 @@ module ActionController
super
end
-
- def _layout_for_name(name)
- name &&= name.sub(%r{^/?layouts/}, '')
- super
- end
+
+ def _layout_for_name(name)
+ name &&= name.sub(%r{^/?layouts/}, '')
+ super
+ end
end
end \ No newline at end of file