Sha256: 182963768ae2b4127126cc132198e9a454f988644aa36de093a7ddeb2548ebc3

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

class BotController < Stealth::Controller

  def route
    if current_session.present?
      step_to session: current_session
    else
      step_to flow: 'Hello', state: 'say_hello'
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stealth-1.0.0.pre1 lib/stealth/generators/builder/bot/controllers/bot_controller.rb
stealth-0.10.6 lib/stealth/generators/builder/bot/controllers/bot_controller.rb
stealth-0.10.5 lib/stealth/generators/builder/bot/controllers/bot_controller.rb