mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rack implements redirect?
so we don't need it
Rack [already implements `redirect?` on the response object](1569a985e1/lib/rack/response.rb (L141)
) so we don't need to implement our own.
This commit is contained in:
parent
9dc06bc1f3
commit
4d4d764ab6
2 changed files with 0 additions and 6 deletions
|
@ -139,9 +139,6 @@ module ActionController
|
|||
# Was the URL not found?
|
||||
alias_method :missing?, :not_found?
|
||||
|
||||
# Were we redirected?
|
||||
alias_method :redirect?, :redirection?
|
||||
|
||||
# Was there a server-side error?
|
||||
alias_method :error?, :server_error?
|
||||
end
|
||||
|
|
|
@ -16,9 +16,6 @@ module ActionDispatch
|
|||
# Was the URL not found?
|
||||
alias_method :missing?, :not_found?
|
||||
|
||||
# Were we redirected?
|
||||
alias_method :redirect?, :redirection?
|
||||
|
||||
# Was there a server-side error?
|
||||
alias_method :error?, :server_error?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue