Add pickups role

This commit is contained in:
Patrick Gansterer 2017-11-15 23:58:11 +01:00
parent 4c41a99fde
commit ac11ba1cc1
14 changed files with 42 additions and 15 deletions

View file

@ -1,5 +1,7 @@
class PickupsController < ApplicationController
before_filter :authenticate_pickups
def index
@orders = Order.finished_not_closed.order('pickup DESC').group_by { |o| o.pickup }
end