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.31 app/models/ecom/core/menu.rb
ecom_core-1.2.30 app/models/ecom/core/menu.rb
ecom_core-1.2.29 app/models/ecom/core/menu.rb
ecom_core-1.2.28 app/models/ecom/core/menu.rb
ecom_core-1.2.27 app/models/ecom/core/menu.rb
ecom_core-1.2.26 app/models/ecom/core/menu.rb
ecom_core-1.2.25 app/models/ecom/core/menu.rb
ecom_core-1.2.24 app/models/ecom/core/menu.rb
ecom_core-1.2.23 app/models/ecom/core/menu.rb
ecom_core-1.2.22 app/models/ecom/core/menu.rb
ecom_core-1.2.21 app/models/ecom/core/menu.rb
ecom_core-1.2.20 app/models/ecom/core/menu.rb
ecom_core-1.2.19 app/models/ecom/core/menu.rb
ecom_core-1.2.18 app/models/ecom/core/menu.rb
ecom_core-1.2.17 app/models/ecom/core/menu.rb
ecom_core-1.2.16 app/models/ecom/core/menu.rb
ecom_core-1.2.15 app/models/ecom/core/menu.rb
ecom_core-1.2.14 app/models/ecom/core/menu.rb
ecom_core-1.2.13 app/models/ecom/core/menu.rb
ecom_core-1.2.12 app/models/ecom/core/menu.rb