Permalink
Browse files

Include flash in the list of attributes with accessors in the view

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 92b925b commit 9bf38dec69b68ab34d6ffcc4707df14cf074caae @dhh dhh committed May 20, 2005
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_view/base.rb
View
@@ -16,7 +16,7 @@
* Fixed Form.disable in Prototype #1317 [Wintermute]
-* Added accessors to logger, params, response, session, and headers from the view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller
+* Added accessors to logger, params, response, session, flash, and headers from the view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller
* Added support for POST data in form of YAML or XML, which is controller through the X-POST_DATA_MARSHAL header. Example request:
@@ -123,7 +123,7 @@ class Base
attr_accessor :base_path, :assigns, :template_extension
attr_accessor :controller
- attr_reader :logger, :params, :response, :session, :headers
+ attr_reader :logger, :params, :response, :session, :headers, :flash
# Turn on to cache the reading of templates from the file system. Doing so means that you have to restart the server
# when changing templates, but that rendering will be faster.

0 comments on commit 9bf38de

Please sign in to comment.