aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-22 16:08:03 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-22 16:08:03 -0600
commita1bf2f96ce6f086de8519e344ee7e396ae3da9bb (patch)
tree3c3a300bb56ec47dca0bc2b2d0379b33e295524e /actionpack/lib/action_dispatch/http/response.rb
parent17b6053083767e5747c0f522b83a69e268d9d69e (diff)
downloadrails-a1bf2f96ce6f086de8519e344ee7e396ae3da9bb.tar.gz
rails-a1bf2f96ce6f086de8519e344ee7e396ae3da9bb.tar.bz2
rails-a1bf2f96ce6f086de8519e344ee7e396ae3da9bb.zip
AD::StatusCodes support is now part of rack
Diffstat (limited to 'actionpack/lib/action_dispatch/http/response.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 6dc563264f..8524bbd993 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -60,7 +60,7 @@ module ActionDispatch # :nodoc:
end
def status=(status)
- @status = ActionDispatch::StatusCodes[status]
+ @status = Rack::Utils.status_code(status)
end
# The response code of the request
@@ -74,7 +74,7 @@ module ActionDispatch # :nodoc:
end
def message
- StatusCodes::STATUS_CODES[@status]
+ Rack::Utils::HTTP_STATUS_CODES[@status]
end
alias_method :status_message, :message