aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2014-08-02 12:05:26 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2014-08-02 12:05:26 +0000
commitd9bd75a0d85355b8d63e4003a76c6399f0dbce17 (patch)
tree8ade03f2c7dc9fa16ad1770fd4fc8eac310dc812
parent132e3fdf80046d4e2def9494cb0d1e9212caf0cf (diff)
downloadrails-d9bd75a0d85355b8d63e4003a76c6399f0dbce17.tar.gz
rails-d9bd75a0d85355b8d63e4003a76c6399f0dbce17.tar.bz2
rails-d9bd75a0d85355b8d63e4003a76c6399f0dbce17.zip
copy edits[ci skip]
-rw-r--r--actionpack/lib/action_controller/metal.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index 0fa0357bae..bfbc15a901 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -183,9 +183,7 @@ module ActionController
super
end
- # Tests if render or redirect already happended. Could be useful when used as a
- # conditional to <tt>return</tt> early out a controller action to avoid <tt>AbstractController::DoubleRenderError</tt>
- # example in case of multiple render/redirects in single controller action
+ # Tests if render or redirect has already happened.
def performed?
response_body || (response && response.committed?)
end