Sha256: 141e7a81c4fbaa40c60fa729ced612f9324a8b13e6a68e9ade0803310f6f0df5

Contents?: true

Size: 924 Bytes

Versions: 3

Compression:

Stored size: 924 Bytes

Contents

module Authz
  class BusinessProcessHasControllerAction < self::ApplicationRecord
    # Associations
    # ==========================================================================
    belongs_to :controller_action, class_name: 'Authz::ControllerAction',
                                   foreign_key: 'authz_controller_action_id',
                                   inverse_of: :business_process_has_controller_actions
    belongs_to :business_process, class_name: 'Authz::BusinessProcess',
                                  foreign_key: 'authz_business_process_id',
                                  inverse_of: :business_process_has_controller_actions,
                                  touch: true

    # Validations
    # ===========================================================================
    validates :authz_controller_action_id,
              uniqueness: { scope: [:authz_business_process_id] }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authz-0.0.2 app/models/authz/business_process_has_controller_action.rb
authz-0.0.1 app/models/authz/business_process_has_controller_action.rb
authz-0.0.1.alpha5 app/models/authz/business_process_has_controller_action.rb