diff options
author | Jamis Buck <jamis@37signals.com> | 2005-07-31 10:31:47 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-07-31 10:31:47 +0000 |
commit | 020ed6fa1fa5f73e5af88e3c9cdff09293e76789 (patch) | |
tree | d680b898062e417fe448cd43e4a2ce076aaaa298 /actionpack/lib/action_controller | |
parent | b4c34f7b2b18720381b3c8cfa79f66a530b3ed0b (diff) | |
download | rails-020ed6fa1fa5f73e5af88e3c9cdff09293e76789.tar.gz rails-020ed6fa1fa5f73e5af88e3c9cdff09293e76789.tar.bz2 rails-020ed6fa1fa5f73e5af88e3c9cdff09293e76789.zip |
Allow remote_addr to be queried on TestRequest #1668
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index ebbb66b4ec..999a551808 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -60,6 +60,10 @@ module ActionController #:nodoc: @env['REMOTE_ADDR'] = addr end + def remote_addr + @env['REMOTE_ADDR'] + end + def request_uri @request_uri || super() end |