Passing spec for user product information

This commit is contained in:
2014-04-23 17:06:46 +02:00
parent ea498cb9c5
commit 546e4499ea
42 changed files with 190 additions and 482 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class DashboardController < ApplicationController
# Testing action
def select_qrcode
#@tables = Table.all.sample(2) | List.active.map(&:table)
@tables = Supplier.first.tables.sample(5) | List.active.map(&:table)
@tables = (current_supplier || Supplier.first).tables.sample(5) | List.active.map(&:table)
respond_to do |format|
format.html { render layout: 'phone' }
format.json { render json: @tables.to_json }