Sha256: 4af54a55b584921791624f75ada9bb6908607fc418d8eb9f16ed73707d59970d

Contents?: true

Size: 613 Bytes

Versions: 28

Compression:

Stored size: 613 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, 
                            -> { distinct },
                            class_name: "Metasploit::Credential::Core", 
                            join_table: "credential_cores_tasks"
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.10 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.9 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.8 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.7 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.6 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.5 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.4 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.3 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.2 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.1 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-6.0.0 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.9 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.8 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.7 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.6 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.5 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.4 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.3 app/concerns/mdm/task/metasploit_credential_core.rb
metasploit-credential-5.0.2 app/concerns/mdm/task/metasploit_credential_core.rb