class Rails::Console

def initialize(app, options = {})

def initialize(app, options = {})
  @app     = app
  @options = options
  app.sandbox = sandbox?
  if sandbox? && app.config.disable_sandbox
    puts "Error: Unable to start console in sandbox mode as sandbox mode is disabled (config.disable_sandbox is true)."
    exit 1
  end
  app.load_console
  @console = app.config.console || IRB
  if @console == IRB
    IRB::WorkSpace.prepend(BacktraceCleaner)
    if Rails.env.production?
      ENV["IRB_USE_AUTOCOMPLETE"] ||= "false"
    end
  end
end