Permalink
Browse files

Add a 'referer' attribute to TestRequest

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jamis committed Dec 19, 2006
1 parent 32bc10d commit 33e48d5f9704e94c52d50c85607efa3cd4903704
Showing with 6 additions and 0 deletions.
  1. +2 −0 actionpack/CHANGELOG
  2. +4 −0 actionpack/lib/action_controller/test_process.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Add a 'referer' attribute to TestRequest. [Jamis Buck]
+
* Ensure render :json => ... skips the layout. Closes #6808 [Josh Peek]
* Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy]
@@ -124,6 +124,10 @@ def recycle!
@request_method, @accepts, @content_type = nil, nil, nil
end
+ def referer
+ @env["HTTP_REFERER"]
+ end
+
private
def initialize_containers
@env, @cookies = {}, {}

0 comments on commit 33e48d5

Please sign in to comment.