Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3dfd54

Browse files
Merge branch 'master' into employees
2 parents 137031f + 3132d60 commit e3dfd54

24 files changed

+197
-6
lines changed

‎app/controllers/category_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class CategoryController < ApplicationController
2+
end

‎app/controllers/customers_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class CustomersController < AuthorizedController
2+
3+
end

‎app/controllers/orders_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class OrdersController < AuthorizedController
2+
end

‎app/controllers/products_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ProductsController < AuthorizedController
2+
end

‎app/controllers/suppliers_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class SuppliersController < AuthorizedController
2+
end

‎app/models/customer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class Customer < ApplicationRecord
2+
end

‎app/models/order.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class Order < ApplicationRecord
2+
end

‎app/models/product.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Product < ApplicationRecord
2+
validates :product_name, presence: true, uniqueness: true
3+
end

‎app/models/supplier.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class Supplier < ApplicationRecord
2+
end

‎app/resources/customer_resource.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class CustomerResource < JSONAPI::Resource
2+
attributes :company_name,
3+
:contact_name
4+
:contact_title
5+
:address
6+
:city
7+
:region
8+
:postal_code
9+
:country
10+
:phone
11+
:fax
12+
end

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /