User style fixes for fixed top menu and list cached supplier loading

This commit is contained in:
2014-09-05 12:20:25 +02:00
parent dbe19779ca
commit f4c0a23eea
12 changed files with 35 additions and 16 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class DashboardController < ApplicationController
if Rails.env.test?
@tables = Table.all
else
@tables = (current_supplier || Supplier.first).tables.sample(5) | List.active.map(&:table)
@tables = (current_supplier || Supplier.first).tables.sample(5) | List.active.map(&:table) | Supplier.find_by_email('supplier2@mozo.bar').tables.sample(3)
end
respond_to do |format|
format.html { render layout: 'phone' }