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

Version Path
smartkiosk-server-0.13.1 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.13 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.12.1 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.12 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.11 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.10 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.9 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.8 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.7 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.6 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.5 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.4 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.3 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.2 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11.1 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.11 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.10.19 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.10.18 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.10.17 app/controllers/terminal_orders_controller.rb
smartkiosk-server-0.10.16 app/controllers/terminal_orders_controller.rb