Sha256: b362d90abc9f4318d2267b63a837f7c833268f02420f42a12f7615f952135a0b

Contents?: true

Size: 359 Bytes

Versions: 13

Compression:

Stored size: 359 Bytes

Contents

module Locomotive
  module ActionController
    class PublicResponder < ::ActionController::Responder

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

    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
tribeca_cms-0.1.1 lib/locomotive/action_controller/public_responder.rb
tribeca_cms-2.0.0.rc12 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc12 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc11 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc10 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc9 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc8 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc7 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc6 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc5 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc4 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc2 lib/locomotive/action_controller/public_responder.rb
locomotive_cms-2.0.0.rc1 lib/locomotive/action_controller/public_responder.rb