Class: Dbwatcher::SessionsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/dbwatcher/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



17
18
19
20
21
22
23
# File 'app/controllers/dbwatcher/sessions_controller.rb', line 17

def clear
  clear_storage_with_message(
    -> { Storage.session_storage.clear_all },
    "All sessions",
    sessions_path
  )
end

#indexObject



7
8
9
# File 'app/controllers/dbwatcher/sessions_controller.rb', line 7

def index
  @sessions = Storage.sessions.all
end

#showObject



11
12
13
14
15
# File 'app/controllers/dbwatcher/sessions_controller.rb', line 11

def show
  @active_tab = params[:tab] || "tables"
  # Debug logging
  Rails.logger.info "SessionsController#show: Session ID: #{@session.id.inspect}, Class: #{@session.class}"
end