aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_controller/components.rb2
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