Waiter app progress

This commit is contained in:
2015-03-24 18:40:55 +01:00
parent 90a2a2087b
commit 792a31edfd
11 changed files with 72 additions and 22 deletions
@@ -0,0 +1,7 @@
class Waiter::SuppliersController < Waiter::ApplicationController
def show
@supplier = Supplier.find(params[:id])
head 404 and return unless @supplier.employee_ids.include?(current_employee.id)
render json: @supplier, serializer: Waiter::SupplierSerializer
end
end