Class: Audits1984::SessionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Audits1984::SessionsController
- Includes:
- FilteredSessionsScoped
- Defined in:
- app/controllers/audits1984/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'app/controllers/audits1984/sessions_controller.rb', line 7 def index @sessions = @filtered_sessions.all end |
#show ⇒ Object
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 |