update
This commit is contained in:
@@ -6,7 +6,7 @@ class Settings::SimpleMenuItemsController < ApplicationController
|
||||
def index
|
||||
@settings_menu_items = @category.menu_items.page(params[:page]).per(10)
|
||||
end
|
||||
|
||||
|
||||
# GET /settings/menu_items/1
|
||||
# GET /settings/menu_items/1.json
|
||||
def show
|
||||
|
||||
@@ -5,7 +5,7 @@ class MenuItem < ApplicationRecord
|
||||
belongs_to :parent, :class_name => "MenuItem", foreign_key: "menu_item_id", :optional => true
|
||||
has_many :children, :class_name => "MenuItem", foreign_key: "menu_item_id"
|
||||
|
||||
validates_presence_of :item_code, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item
|
||||
validates_presence_of :item_code, :name, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item
|
||||
|
||||
default_scope { order('item_code asc') }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user