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.3.14 app/models/ecom/core/menu.rb
ecom_core-1.3.13 app/models/ecom/core/menu.rb
ecom_core-1.3.12 app/models/ecom/core/menu.rb
ecom_core-1.3.11 app/models/ecom/core/menu.rb
ecom_core-1.3.10 app/models/ecom/core/menu.rb
ecom_core-1.3.9 app/models/ecom/core/menu.rb
ecom_core-1.3.8 app/models/ecom/core/menu.rb
ecom_core-1.3.7 app/models/ecom/core/menu.rb
ecom_core-1.3.6 app/models/ecom/core/menu.rb
ecom_core-1.3.5 app/models/ecom/core/menu.rb
ecom_core-1.3.4 app/models/ecom/core/menu.rb
ecom_core-1.3.3 app/models/ecom/core/menu.rb
ecom_core-1.3.2 app/models/ecom/core/menu.rb
ecom_core-1.3.1 app/models/ecom/core/menu.rb
ecom_core-1.3.0 app/models/ecom/core/menu.rb
ecom_core-1.2.36 app/models/ecom/core/menu.rb
ecom_core-1.2.35 app/models/ecom/core/menu.rb
ecom_core-1.2.34 app/models/ecom/core/menu.rb
ecom_core-1.2.33 app/models/ecom/core/menu.rb
ecom_core-1.2.32 app/models/ecom/core/menu.rb