end of day commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user