Module: RedirectOnBack::ControllerAdditions
- Defined in:
- lib/redirect_on_back/controller_additions.rb
Overview
This module is automatically included into all controllers.
Instance Method Summary collapse
Instance Method Details
#redirect_on_back_to(to_path) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/redirect_on_back/controller_additions.rb', line 5 def redirect_on_back_to(to_path) if to_path && params && (token = params[:_usec]).present? ["redirect_#{token}"] = to_path else false end end |