add suppliers/lists ui styling and security fixes

This commit is contained in:
2012-09-07 15:19:02 +02:00
parent 2be6c0ee03
commit 76424f972f
33 changed files with 773 additions and 22 deletions
+2 -1
View File
@@ -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