method
performed?
v4.2.9 -
Show latest stable
- Class:
ActionController::Metal
performed?()public
Tests if render or redirect has already happened.
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