diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-04-21 11:39:46 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-04-21 11:53:14 +0100 |
commit | a04f0228776e7616c372f867a1212b5798cde80a (patch) | |
tree | 39f364456fa4decbb44bdad5019541d7ae7c7edb /actionpack/lib/action_controller | |
parent | f757f5838818ce35f7927a10a8cda6f9583869c5 (diff) | |
download | rails-a04f0228776e7616c372f867a1212b5798cde80a.tar.gz rails-a04f0228776e7616c372f867a1212b5798cde80a.tar.bz2 rails-a04f0228776e7616c372f867a1212b5798cde80a.zip |
Delegate ivars to controller instead of copying
Reduce number of instance variables being copied from controller to
view. Instead, delegate them to controller instance.
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 1aa027f9d7..0c0d0ec4ac 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -256,7 +256,8 @@ module ActionController #:nodoc: # Controller specific instance variables which will not be accessible inside views. @@protected_view_variables = %w(@assigns @performed_redirect @performed_render @variables_added @request_origin @url @parent_controller - @action_name @before_filter_chain_aborted @action_cache_path) + @action_name @before_filter_chain_aborted @action_cache_path @_session @_cookies @_headers @_params + @_flash @_response) # Prepends all the URL-generating helpers from AssetHelper. This makes it possible to easily move javascripts, stylesheets, # and images to a dedicated asset server away from the main web server. Example: |