Sha256: 85d6c3b17c665fae8bbefaa607b3258b47aae16ea370450d10a50c45d6af2eef

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

module Mks
  module Auth
    class UserRole < ApplicationRecord
       # self.table_name = 'mks_user_roles'

      validates :name, presence: true, uniqueness: true
      has_and_belongs_to_many :users, :join_table => :mks_auth_users_user_roles
      has_and_belongs_to_many :menus, :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/user_role.rb
mks_auth-1.2.0 app/models/mks/auth/user_role.rb
mks_auth-1.0.0 app/models/mks/auth/user_role.rb