Sha256: 3ddf8dc7b3fef240652ab2062f1a8fae6d7b8c43430c36a2a7abf4d273e8150e

Contents?: true

Size: 336 Bytes

Versions: 8

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

class CatchAllsController < BotController

  def level1
    send_replies

    if fail_session.present?
      step_to session: fail_session
    else
      step_to session: previous_session - 2.states
    end
  end

private

   def fail_session
     previous_session.flow.current_state.fails_to
   end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
stealth-2.0.0.beta7 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb
stealth-2.0.0.beta6 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb
stealth-2.0.0.beta5 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb
stealth-2.0.0.beta4 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb
stealth-2.0.0.beta3 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb
xip-2.0.0.beta2 lib/xip/generators/builder/bot/controllers/catch_alls_controller.rb
stealth-2.0.0.beta2 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb
stealth-2.0.0.beta1 lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb