Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 7d3d83e7b4996fa161ba4f276ca65edf3902c1a2 1 parent 86b86b2
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/components.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.