app/controllers/tickets_controller.rb in artfully_ose-1.2.0.pre.15 vs app/controllers/tickets_controller.rb in artfully_ose-1.2.0.pre.16

- old
+ new

@@ -13,18 +13,18 @@ end end def validated authorize! :edit, Ticket - Ticket.find(params[:id]).validate_ticket(current_user) + Ticket.find(params[:id]).validate_ticket!(current_user) respond_to do |format| format.json { head :ok } end end def unvalidated authorize! :edit, Ticket - Ticket.find(params[:id]).unvalidate_ticket + Ticket.find(params[:id]).unvalidate_ticket! respond_to do |format| format.json { head :ok } end end