Sha256: f9d94690a98a436b753a95c296dc82c1b1c67ae898253d0f13fad9c37dcb6014
Contents?: true
Size: 358 Bytes
Versions: 3
Compression:
Stored size: 358 Bytes
Contents
module Rbacan class Permission < ApplicationRecord self.table_name = Rbacan.permission_table validates :name, presence: true, uniqueness: true has_many :role_permissions, class_name: Rbacan.role_permission_class, dependent: :destroy has_many :roles, class_name: Rbacan.role_class, through: :role_permissions end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbacan-0.1.2 | app/models/rbacan/permission.rb |
rbacan-0.1.1 | app/models/rbacan/permission.rb |
rbacan-0.1.0 | app/models/rbacan/permission.rb |