Module: ActionDispatch::Http::FilterRedirect

Included in:
Response
Defined in:
actionpack/lib/action_dispatch/http/filter_redirect.rb

Constant Summary collapse

FILTERED =

:nodoc:

'[FILTERED]'.freeze

Instance Method Summary collapse

Instance Method Details

#filtered_locationObject



7
8
9
10
11
12
13
14
# File 'actionpack/lib/action_dispatch/http/filter_redirect.rb', line 7

def filtered_location
  filters = location_filter
  if !filters.empty? && location_filter_match?(filters)
    FILTERED
  else
    location
  end
end