aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-11 00:01:22 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-11 00:01:22 -0600
commit588225f8852c4b60bfba38f16d8797a41e175400 (patch)
treee3272d8c2e196b5ac89ab2ccd465cebf521b16d6 /actionpack/lib/action_controller/metal
parent2f90d700498294a9a4da0baa5317c0e6feaaf176 (diff)
downloadrails-588225f8852c4b60bfba38f16d8797a41e175400.tar.gz
rails-588225f8852c4b60bfba38f16d8797a41e175400.tar.bz2
rails-588225f8852c4b60bfba38f16d8797a41e175400.zip
Remove fancy method not allowed resource exceptions since they are
too much of a hack
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/exceptions.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/actionpack/lib/action_controller/metal/exceptions.rb b/actionpack/lib/action_controller/metal/exceptions.rb
index b9d23da3e0..07024d0a9a 100644
--- a/actionpack/lib/action_controller/metal/exceptions.rb
+++ b/actionpack/lib/action_controller/metal/exceptions.rb
@@ -18,18 +18,9 @@ module ActionController
def initialize(*allowed_methods)
super("Only #{allowed_methods.to_sentence(:locale => :en)} requests are allowed.")
- @allowed_methods = allowed_methods
- end
-
- def allowed_methods_header
- allowed_methods.map { |method_symbol| method_symbol.to_s.upcase } * ', '
- end
-
- def handle_response!(response)
- response.headers['Allow'] ||= allowed_methods_header
end
end
-
+
class NotImplemented < MethodNotAllowed #:nodoc:
end