Class: Audits1984::AuditsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
# File 'app/controllers/audits1984/audits_controller.rb', line 10

def create
  @audit = @session.audits.create!(audit_param.merge(auditor: Current.auditor))
  redirect_to_next_session
end

#updateObject



15
16
17
18
# File 'app/controllers/audits1984/audits_controller.rb', line 15

def update
  @audit.update!(audit_param)
  redirect_to_next_session
end