aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/base.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-12 18:48:34 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-12 18:48:34 -0600
commit4b4e517bf1d51e749a6cedb2dd5203b19ab080e5 (patch)
tree13fa42ddca7d1c9c4c3ce1f2fe6ccba3658d75d3 /actionpack/lib/abstract_controller/base.rb
parent018dafe574d370165547516ffef43394e11ab4da (diff)
downloadrails-4b4e517bf1d51e749a6cedb2dd5203b19ab080e5.tar.gz
rails-4b4e517bf1d51e749a6cedb2dd5203b19ab080e5.tar.bz2
rails-4b4e517bf1d51e749a6cedb2dd5203b19ab080e5.zip
Relocate AbstractController exceptions into their proper parent modules
Diffstat (limited to 'actionpack/lib/abstract_controller/base.rb')
-rw-r--r--actionpack/lib/abstract_controller/base.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index f5b1c9e4d1..70b5f5b3ef 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -1,4 +1,6 @@
module AbstractController
+ class Error < StandardError; end
+ class ActionNotFound < StandardError; end
class Base
attr_internal :response_body
@@ -74,7 +76,7 @@ module AbstractController
abstract!
# Calls the action going through the entire action dispatch stack.
- #
+ #
# The actual method that is called is determined by calling
# #method_for_action. If no method can handle the action, then an
# ActionNotFound error is raised.