diff options
author | Lauro Caetano <laurocaetano1@gmail.com> | 2014-03-05 19:12:02 -0300 |
---|---|---|
committer | Lauro Caetano <laurocaetano1@gmail.com> | 2014-03-11 20:11:53 -0300 |
commit | 0d191baa823414a900ef7362359cb6fc87be1d38 (patch) | |
tree | 14bbfb1adbef0ef27bdacdad775c82a8ffae0c36 /actionpack/lib | |
parent | 9f84c7bc48dbcea3314943469358badc77b570b4 (diff) | |
download | rails-0d191baa823414a900ef7362359cb6fc87be1d38.tar.gz rails-0d191baa823414a900ef7362359cb6fc87be1d38.tar.bz2 rails-0d191baa823414a900ef7362359cb6fc87be1d38.zip |
[ci skip] Add documentation for original_fullpath.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 1318c62fbe..daa06e96e6 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -152,6 +152,13 @@ module ActionDispatch Http::Headers.new(@env) end + # Returns a +String+ with the last requested path including their params. + # + # # get '/foo' + # request.original_fullpath # => '/foo' + # + # # get '/foo?bar' + # request.original_fullpath # => '/foo?bar' def original_fullpath @original_fullpath ||= (env["ORIGINAL_FULLPATH"] || fullpath) end |