update menu

This commit is contained in:
Yan
2017-08-11 15:00:24 +06:30
parent 12d3e70b19
commit be71d187b0
6 changed files with 19 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
class MenuItem < ApplicationRecord
before_create :generate_menu_item_code
# before_create :generate_menu_item_code
belongs_to :menu_category, :optional => true
has_many :menu_item_instances
@@ -73,10 +72,10 @@ class MenuItem < ApplicationRecord
end
private
# private
def generate_menu_item_code
self.item_code = SeedGenerator.generate_code(self.class.name, "I")
end
# def generate_menu_item_code
# self.item_code = SeedGenerator.generate_code(self.class.name, "I")
# end
end