add suppliers/lists ui styling and security fixes
This commit is contained in:
@@ -5,6 +5,7 @@ class Supplier
|
||||
|
||||
property :name
|
||||
property :open, type: :boolean, default: false
|
||||
property :night_offset, type: Float
|
||||
|
||||
#WIFI
|
||||
property :offer_wifi
|
||||
@@ -16,6 +17,7 @@ class Supplier
|
||||
has_many :products, dependent: :destroy
|
||||
has_many :product_categories, dependent: :destroy
|
||||
has_many :tables, dependent: :destroy
|
||||
has_many :lists, dependent: :destroy
|
||||
#has_many :lists, through: :tables
|
||||
has_many :orders
|
||||
has_many :sections, dependent: :destroy
|
||||
@@ -63,7 +65,6 @@ class Supplier
|
||||
self.open = false
|
||||
save
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def add_section_on_create
|
||||
|
||||
Reference in New Issue
Block a user