Sha256: 47bf10f6a92ea5da95bf332e17c37f959686d2972109b83705c99c871e6f5c32

Contents?: true

Size: 349 Bytes

Versions: 15

Compression:

Stored size: 349 Bytes

Contents

module Sis
  module Core
    class Menu < ApplicationRecord
      has_and_belongs_to_many :user_roles
      belongs_to :application_module
      belongs_to :parent, class_name: 'Sis::Core::Menu', optional: true
      has_many :children, class_name: 'Sis::Core::Menu', foreign_key: 'parent_id'
      validates :text, presence: true
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sis_core-1.0.20 app/models/sis/core/menu.rb
sis_core-1.0.19 app/models/sis/core/menu.rb
sis_core-1.0.18 app/models/sis/core/menu.rb
sis_core-1.0.17 app/models/sis/core/menu.rb
sis_core-1.0.16 app/models/sis/core/menu.rb
sis_core-1.0.15 app/models/sis/core/menu.rb
sis_core-1.0.14 app/models/sis/core/menu.rb
sis_core-1.0.13 app/models/sis/core/menu.rb
sis_core-1.0.12 app/models/sis/core/menu.rb
sis_core-1.0.11 app/models/sis/core/menu.rb
sis_core-1.0.10 app/models/sis/core/menu.rb
sis_core-1.0.9 app/models/sis/core/menu.rb
sis_core-1.0.8 app/models/sis/core/menu.rb
sis_core-1.0.7 app/models/sis/core/menu.rb
sis_core-1.0.6 app/models/sis/core/menu.rb