mirror of
https://github.com/github/rails.git
synced 2026-02-07 20:54:57 -05:00
Add a 'referer' attribute to TestRequest
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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 @@ module ActionController #:nodoc:
|
||||
@request_method, @accepts, @content_type = nil, nil, nil
|
||||
end
|
||||
|
||||
def referer
|
||||
@env["HTTP_REFERER"]
|
||||
end
|
||||
|
||||
private
|
||||
def initialize_containers
|
||||
@env, @cookies = {}, {}
|
||||
|
||||
Reference in New Issue
Block a user