diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-07 13:51:56 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-07 13:51:56 +0000 |
commit | 3c31062c3d5f7092a13029d90c861396b91a1a22 (patch) | |
tree | 900cbdc1128f4a24f47883f5c067055e908ae92f /actionpack/lib/action_view/base.rb | |
parent | bbe9ee13e1828daf6c2c548d14dd93e2b75497b8 (diff) | |
download | rails-3c31062c3d5f7092a13029d90c861396b91a1a22.tar.gz rails-3c31062c3d5f7092a13029d90c861396b91a1a22.tar.bz2 rails-3c31062c3d5f7092a13029d90c861396b91a1a22.zip |
Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index bc49460841..92eef11967 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -122,7 +122,7 @@ module ActionView #:nodoc: attr_accessor :base_path, :assigns, :template_extension attr_accessor :controller - attr_reader :logger, :params, :response, :session, :headers, :flash + attr_reader :logger, :params, :request, :response, :session, :headers, :flash # Specify trim mode for the ERB compiler. Defaults to '-'. # See ERB documentation for suitable values. |