end of day commit

This commit is contained in:
2012-08-29 17:42:04 +02:00
parent 89700f36e9
commit 8213bae2c6
57 changed files with 1109 additions and 128 deletions
+11 -6
View File
@@ -1,8 +1,5 @@
class DashboardController < ApplicationController
before_filter :check_active_list_state, except: :home
def home
end
@@ -16,9 +13,17 @@ class DashboardController < ApplicationController
end
def supplier_home
redirect_to active_orders_supplier_path(Supplier.first)
# GET /select_qr_image
# GET /select_qr_image.png
# GET /select_qr_image.svg
def table_qr_image
@table = Table.find(params[:table_id])
code = {table_id: @table.id}.to_json
respond_to do |format|
format.html
format.svg { render :qrcode => code, :level => :l, :unit => 10, table_number: @table.number }
format.png { render qrcode: code, table_number: @table.number }
end
end
end