Add section elements
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
module Tests
|
||||
class ApplicationController < ::ApplicationController
|
||||
def f
|
||||
FactoryGirl
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
module Tests
|
||||
class ListsController < Tests::ApplicationController
|
||||
def index
|
||||
render json: []
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
module Tests
|
||||
class SuppliersController < Tests::ApplicationController
|
||||
def show
|
||||
@supplier = f.build :supplier, id: params[:id]
|
||||
render json: @supplier, serializer: Suppliers::SupplierSerializer
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user