Class: Locomotive::ActionController::PublicResponder

Inherits:
ActionController::Responder
  • Object
show all
Defined in:
lib/locomotive/action_controller/public_responder.rb

Instance Method Summary collapse

Instance Method Details



5
6
7
8
9
10
11
12
13
# File 'lib/locomotive/action_controller/public_responder.rb', line 5

def navigation_behavior(error)
  if get?
    raise error
  elsif has_errors? && default_action
    redirect_to navigation_location
  else
    redirect_to navigation_location
  end
end