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.1.19 app/models/ecom/core/menu.rb
ecom_core-1.1.18 app/models/ecom/core/menu.rb
ecom_core-1.1.17 app/models/ecom/core/menu.rb
ecom_core-1.1.16 app/models/ecom/core/menu.rb
ecom_core-1.1.15 app/models/ecom/core/menu.rb
ecom_core-1.1.14 app/models/ecom/core/menu.rb
ecom_core-1.1.13 app/models/ecom/core/menu.rb
ecom_core-1.1.12 app/models/ecom/core/menu.rb
ecom_core-1.1.11 app/models/ecom/core/menu.rb
ecom_core-1.1.10 app/models/ecom/core/menu.rb
ecom_core-1.1.9 app/models/ecom/core/menu.rb
ecom_core-1.1.8 app/models/ecom/core/menu.rb
ecom_core-1.1.7 app/models/ecom/core/menu.rb
ecom_core-1.1.6 app/models/ecom/core/menu.rb
ecom_core-1.1.5 app/models/ecom/core/menu.rb
ecom_core-1.1.4 app/models/ecom/core/menu.rb
ecom_core-1.1.3 app/models/ecom/core/menu.rb
ecom_core-1.1.2 app/models/ecom/core/menu.rb
ecom_core-1.1.1 app/models/ecom/core/menu.rb
ecom_core-1.1.0 app/models/ecom/core/menu.rb