1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Andrew White b64bac489c Allow engine root relative redirects using an empty string.
Example:

    # application routes.rb
    mount BlogEngine => '/blog'

    # engine routes.rb
    get '/welcome' => redirect('')

This now redirects to the path `/blog`, whereas before it would redirect
to the application root path. In the case of a path redirect or a custom
redirect if the path returned contains a host then the path is treated as
absolute. Similarly for option redirects, if the options hash returned
contains a `:host` or `:domain` key then the path is treated as absolute.

Fixes #7977
2014-01-01 11:19:14 +00:00
..
abstract Action Pack Variants 2013-12-04 00:13:16 +01:00
assertions Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
controller Add any/all support for variants 2013-12-26 20:36:17 +01:00
dispatch Allow engine root relative redirects using an empty string. 2014-01-01 11:19:14 +00:00
fixtures Merge pull request #13470 from strzalek/variants-all-any 2013-12-31 09:57:09 -08:00
journey Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
lib/controller Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
routing Fix failing test missed for the past year :( 2013-07-17 08:56:34 +01:00
tmp
abstract_unit.rb Unused classes in AP tests 2013-12-25 18:10:56 +09:00