method
performed?
v3.2.13 -
Show latest stable
- Class:
ActionController::Metal
performed?()public
No documentation available.
# File actionpack/lib/action_controller/metal.rb, line 195
def performed?
response_body
end 1Note
#performed? is an option when getting ActionController::DoubleRenderError
You can avoid ActionController::DoubleRenderError (Can only render or redirect once per action) with #performed?
==== For example def index redirect_to not_found_path unless authenticated? render :action => 'update' unless performed? end