aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-07 16:00:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-07 16:00:57 -0700
commit81cfdf2489fe436bb70e0e44c5683c57d0247850 (patch)
tree233d797b6e42661284897698be5cd7e0a8d13b4f /guides
parent2a3c47ff5d4ed7391d8a2d02a6baa1f1f55a8df3 (diff)
downloadrails-81cfdf2489fe436bb70e0e44c5683c57d0247850.tar.gz
rails-81cfdf2489fe436bb70e0e44c5683c57d0247850.tar.bz2
rails-81cfdf2489fe436bb70e0e44c5683c57d0247850.zip
stop using @_env in the controller instance
Actions are processed through `dispatch`, so they should have the request set on them before any user land code can be executed. Lets stop setting _env on the controller, and give access to it through the `env` method.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/debugging_rails_applications.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md
index dc1df8f229..44434c164b 100644
--- a/guides/source/debugging_rails_applications.md
+++ b/guides/source/debugging_rails_applications.md
@@ -502,7 +502,7 @@ current context:
(byebug) instance_variables
[:@_action_has_layout, :@_routes, :@_headers, :@_status, :@_request,
- :@_response, :@_env, :@_prefixes, :@_lookup_context, :@_action_name,
+ :@_response, :@_prefixes, :@_lookup_context, :@_action_name,
:@_response_body, :@marked_for_same_origin_verification, :@_config]
```
@@ -533,7 +533,7 @@ And then ask again for the instance_variables:
```
(byebug) instance_variables
[:@_action_has_layout, :@_routes, :@_headers, :@_status, :@_request,
- :@_response, :@_env, :@_prefixes, :@_lookup_context, :@_action_name,
+ :@_response, :@_prefixes, :@_lookup_context, :@_action_name,
:@_response_body, :@marked_for_same_origin_verification, :@_config,
:@articles]
```