diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-11 00:01:22 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-11 00:01:22 -0600 |
commit | 588225f8852c4b60bfba38f16d8797a41e175400 (patch) | |
tree | e3272d8c2e196b5ac89ab2ccd465cebf521b16d6 /actionpack/lib/action_controller | |
parent | 2f90d700498294a9a4da0baa5317c0e6feaaf176 (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_controller/metal/exceptions.rb | 11 |
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 |