Sha256: 785dcd2d6b2a7786ac70e291f1d804cd9c3f96e757acbdb240e51cb7100435a4

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

module LunarShell
  class ShellsController < LunarShell::ApplicationController
    before_action :initialize_shell

    def show
    end

    private

    def initialize_shell
      session[:prompt] = USER_PROMPT
      session[:current_user_id] ||= nil
      session[:history] = []
      session[:history_index] = 0
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lunar_shell-0.5.2 app/controllers/lunar_shell/shells_controller.rb
lunar_shell-0.5.0 app/controllers/lunar_shell/shells_controller.rb
lunar_shell-0.4.1 app/controllers/lunar_shell/shells_controller.rb
lunar_shell-0.3.0 app/controllers/lunar_shell/shells_controller.rb