Sha256: 7f2bcebd8d2410c1393685c0ec2d5b2e4c88854161ae22fe6e71429260ad6b52

Contents?: true

Size: 608 Bytes

Versions: 26

Compression:

Stored size: 608 Bytes

Contents

# Add `credential_cores` association to `Mdm::Task`.
module Mdm::Task::MetasploitCredentialCore
  extend ActiveSupport::Concern

  included do
    #
    # Associations
    #

    # @!attribute credential_cores
    #   The {Metasploit::Credential::Core credential origins} from this import task.
    #
    #   @return [ActiveRecord::Relation<Metasploit::Credential::Core>]
    has_and_belongs_to_many :credential_cores, 
                            -> { uniq },
                            class_name: "Metasploit::Credential::Core", 
                            join_table: "credential_cores_tasks"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
metasploit-credential-1.1.0 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-1.0.1 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-1.0.0 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0c app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0b app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0 app/concerns/mdm/task/metasploit_credential_core.rb