Sha256: 50e32be812480824992df611d7a6ce67573a8334d49e715d5f50f120f21b02ae
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
module Authz class RoleGrant < ApplicationRecord # Associations # ========================================================================== belongs_to :role, class_name: 'Authz::Role', foreign_key: 'authz_role_id' belongs_to :rolable, polymorphic: true # Validations # =========================================================================== validates :authz_role_id, uniqueness: { scope: [:rolable_type, :rolable_id] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authz-0.0.1.alpha | app/models/authz/role_grant.rb |