Class: AssignmentsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AssignmentsController
- Defined in:
- app/controllers/assignments_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/assignments_controller.rb', line 4 def create @ticket = Ticket.find params[:ticket_id] @assignment = @ticket.assignments.build( assignment_params.merge(assigner: current_user) ) respond_to do |format| format.js end end |
#destroy ⇒ Object
19 20 21 22 |
# File 'app/controllers/assignments_controller.rb', line 19 def destroy assignment = Assignment.find params[:id] assignment.destroy end |
#update ⇒ Object
15 16 17 |
# File 'app/controllers/assignments_controller.rb', line 15 def update # as one would have it end |