Class: Locomotive::ActionController::PublicResponder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- Locomotive::ActionController::PublicResponder
- Defined in:
- lib/locomotive/action_controller/public_responder.rb
Instance Method Summary collapse
Instance Method Details
#navigation_behavior(error) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/locomotive/action_controller/public_responder.rb', line 5 def (error) if get? raise error elsif has_errors? && default_action redirect_to else redirect_to end end |