mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove useless conditional
We always have a response object in controller instances, so we can remove this conditional
This commit is contained in:
parent
44454bdd8b
commit
109fb8e7a9
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ module ActionController
|
|||
|
||||
# Tests if render or redirect has already happened.
|
||||
def performed?
|
||||
response_body || (response && response.committed?)
|
||||
response_body || response.committed?
|
||||
end
|
||||
|
||||
def dispatch(name, request, response) #:nodoc:
|
||||
|
|
Loading…
Reference in a new issue