Passing spec for user product information
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user