Poltergeist in the green, and resourceful refactor
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module Employees
|
||||
class SuppliersController < Employees::ApplicationController
|
||||
def index
|
||||
@suppliers = current_employee.suppliers
|
||||
render json: @suppliers, each_serializer: Employees::SupplierSerializer
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user