Sha256: 46fc8677535b4f067a94d69a2220d83720e7196bce425e73eaec72ca27ecba1f
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
module Mks module Auth class Menu < ApplicationRecord # self.table_name = 'mks_menus' belongs_to :application_module, class_name: 'Mks::Auth::ApplicationModule' belongs_to :parent, class_name: 'Mks::Auth::Menu', optional: true has_many :children, class_name: 'Mks::Auth::Menu', :foreign_key => 'parent_id' has_and_belongs_to_many :roles, class_name: 'Mks::Auth::UserRole', :join_table => :mks_auth_menus_user_roles end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mks_auth-1.4.0 | app/models/mks/auth/menu.rb |
mks_auth-1.2.0 | app/models/mks/auth/menu.rb |
mks_auth-1.0.0 | app/models/mks/auth/menu.rb |