Class: Audits1984::AuditsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Audits1984::AuditsController
- Includes:
- FilteredSessionsScoped
- Defined in:
- app/controllers/audits1984/audits_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#update ⇒ Object
15 16 17 18 |
# File 'app/controllers/audits1984/audits_controller.rb', line 15 def update @audit.update!(audit_param) redirect_to_next_session end |