Sha256: afa396349d61acca8f41921e996bd9e1479b3ffbb28bb670c832f6e3eac4f3fe
Contents?: true
Size: 586 Bytes
Versions: 39
Compression:
Stored size: 586 Bytes
Contents
class TerminalOrdersController < ApplicationController before_filter :authenticate_terminal def acknowledge order = @terminal.terminal_orders.find_by_id(params[:id]) if order.blank? render :text => nil, :status => 404 else order.sent!(params[:percent], params[:error]) render :text => nil, :status => 200 end end def complete order = @terminal.terminal_orders.find_by_id(params[:id]) if order.blank? render :text => nil, :status => 404 else order.complete! render :text => nil, :status => 200 end end end
Version data entries
39 entries across 39 versions & 1 rubygems