1
0
Fork 0
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:
Aaron Patterson 2015-07-14 11:22:26 -07:00
parent 9dc06bc1f3
commit 4d4d764ab6
2 changed files with 0 additions and 6 deletions

View file

@ -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

View file

@ -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