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.2.11 app/models/ecom/core/menu.rb
ecom_core-1.2.10 app/models/ecom/core/menu.rb
ecom_core-1.2.9 app/models/ecom/core/menu.rb
ecom_core-1.2.7 app/models/ecom/core/menu.rb
ecom_core-1.2.6 app/models/ecom/core/menu.rb
ecom_core-1.2.5 app/models/ecom/core/menu.rb
ecom_core-1.2.4 app/models/ecom/core/menu.rb
ecom_core-1.2.3 app/models/ecom/core/menu.rb
ecom_core-1.2.2 app/models/ecom/core/menu.rb
ecom_core-1.2.1 app/models/ecom/core/menu.rb
ecom_core-1.2.0 app/models/ecom/core/menu.rb
ecom_core-1.1.28 app/models/ecom/core/menu.rb
ecom_core-1.1.27 app/models/ecom/core/menu.rb
ecom_core-1.1.26 app/models/ecom/core/menu.rb
ecom_core-1.1.25 app/models/ecom/core/menu.rb
ecom_core-1.1.24 app/models/ecom/core/menu.rb
ecom_core-1.1.23 app/models/ecom/core/menu.rb
ecom_core-1.1.22 app/models/ecom/core/menu.rb
ecom_core-1.1.21 app/models/ecom/core/menu.rb
ecom_core-1.1.20 app/models/ecom/core/menu.rb