CRUD Update for Promotion
This commit is contained in:
@@ -19,6 +19,7 @@ class MenuItem < ApplicationRecord
|
||||
|
||||
scope :simple_menu_item, -> { where(type: 'SimpleMenuItem') }
|
||||
scope :set_menu_item, -> { where(type: 'SetMenuItem') }
|
||||
scope :active, -> { where(is_available: true) }
|
||||
|
||||
# Item Image Uploader
|
||||
mount_uploader :image_path, MenuItemImageUploader
|
||||
|
||||
Reference in New Issue
Block a user