Sha256: b41c776d60de44ba65d8a1a9c7fd4fae1b2cd1f7e9f325d79f1377e0f89d7ef0
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
module Authz # An instance represents a single mapping between a role and a business process. # For example <Publisher, release reports> class RoleHasBusinessProcess < self::ApplicationRecord # Associations # ========================================================================== belongs_to :business_process, class_name: 'Authz::BusinessProcess', foreign_key: 'authz_business_process_id', inverse_of: :role_has_business_processes belongs_to :role, class_name: 'Authz::Role', foreign_key: 'authz_role_id', inverse_of: :role_has_business_processes, touch: true # Validations # =========================================================================== validates :authz_business_process_id, uniqueness: { scope: [:authz_role_id] } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
authz-0.0.5 | app/models/authz/role_has_business_process.rb |
authz-0.0.4 | app/models/authz/role_has_business_process.rb |
authz-0.0.3 | app/models/authz/role_has_business_process.rb |