aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/metal.rb')
-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