Permalink
Browse files

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
  • Loading branch information...
1 parent 86b86b2 commit 7d3d83e7b4996fa161ba4f276ca65edf3902c1a2 @dhh dhh committed Feb 19, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/components.rb
@@ -8,7 +8,7 @@ def self.append_features(base)
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

0 comments on commit 7d3d83e

Please sign in to comment.