Class: Audits1984::SessionsController

Inherits:
ApplicationController show all
Includes:
FilteredSessionsScoped
Defined in:
app/controllers/audits1984/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @sessions = @filtered_sessions.all
end

#showObject



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

def show
  @session = Console1984::Session.find(params[:id])
  @audit = @session.audits.find_by(auditor: Current.auditor) || @session.audits.build(auditor: Current.auditor)
end