diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 20:33:15 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 20:33:15 +0000 |
commit | 7d3d83e7b4996fa161ba4f276ca65edf3902c1a2 (patch) | |
tree | dd08eb7a243bc9c1efacb5f6e12daca439342c63 | |
parent | 86b86b26473e28534df23f5379a3fea5d0e8514a (diff) | |
download | rails-7d3d83e7b4996fa161ba4f276ca65edf3902c1a2.tar.gz rails-7d3d83e7b4996fa161ba4f276ca65edf3902c1a2.tar.bz2 rails-7d3d83e7b4996fa161ba4f276ca65edf3902c1a2.zip |
Use full status for render_component from within a controller
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/components.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 681c7b6d9a..86bf5d8138 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -8,7 +8,7 @@ module ActionController #:nodoc: protected def render_component(options = {}) #:doc: response = component_response(options) - render_text(response.body, response.response_code) + render_text(response.body, response.headers["Status"]) end private |