Sha256: e2c0ff993d26ab76f06a755b79e8bc8d0e2f84c6a9594380cd57afb5fc05dfd8

Contents?: true

Size: 320 Bytes

Versions: 84

Compression:

Stored size: 320 Bytes

Contents

module Ecom
  module Core
    class Menu < ApplicationRecord
      belongs_to :parent, class_name: 'Ecom::Core::Menu', optional: true
      belongs_to :application_module
      has_many :children, class_name: 'Ecom::Core::Menu', foreign_key: 'parent_id'

      validates :label, :route, presence: true
    end
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
ecom_core-1.0.25 app/models/ecom/core/menu.rb
ecom_core-1.0.24 app/models/ecom/core/menu.rb
ecom_core-1.0.23 app/models/ecom/core/menu.rb
ecom_core-1.0.22 app/models/ecom/core/menu.rb