Sha256: 70d2acb11380e62fc3ad2ad5316bd6232441726a65b53e7428c3e6414651bf76

Contents?: true

Size: 612 Bytes

Versions: 26

Compression:

Stored size: 612 Bytes

Contents

# Add `credential_cores` association to `Mdm::Task`.
module Mdm::Task::MetasploitCredentialLogin
  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_logins, 
                            -> { uniq },
                            class_name: "Metasploit::Credential::Login", 
                            join_table: "credential_logins_tasks"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
metasploit-credential-3.0.4 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-3.0.3 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-3.0.2 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-3.0.1 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-3.0.0 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.14 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.13 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.12 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.11 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.10 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.9 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.8 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.7 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.6 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.5 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.4 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.3 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.2 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.1 app/concerns/mdm/task/metasploit_credential_login.rb
metasploit-credential-2.0.0 app/concerns/mdm/task/metasploit_credential_login.rb