Sha256: cc390cf01ae046782608b33702adaf774f58ef5d9d57f5fd0a2a2bd7d8de2090
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
# A set of {#matches automatic exploitation matches}. class MetasploitDataModels::AutomaticExploitation::MatchSet < ActiveRecord::Base # # Associations # # Runs of this set of {#matches}. has_many :runs, class_name: "MetasploitDataModels::AutomaticExploitation::Run", inverse_of: :match_set # Matches in this set. has_many :matches, class_name: "MetasploitDataModels::AutomaticExploitation::Match", inverse_of: :match_set, dependent: :destroy # User that created this match set. belongs_to :user, inverse_of: :automatic_exploitation_match_sets, class_name: "Mdm::User" # Workspace in which this match set exists. belongs_to :workspace, inverse_of: :automatic_exploitation_match_sets, class_name: "Mdm::Workspace" # # Mass Assignment Security # attr_accessible :minimum_rank attr_accessible :user_id attr_accessible :workspace_id # # Validations # validates :user, presence: true validates :workspace, presence: true Metasploit::Concern.run(self) end
Version data entries
3 entries across 3 versions & 1 rubygems