Sha256: 49627e859572f636c7dfb869cd91daf4c260c936fc1b09834838d8d165afba82
Contents?: true
Size: 576 Bytes
Versions: 59
Compression:
Stored size: 576 Bytes
Contents
class Mdm::Event < ActiveRecord::Base # # Relations # belongs_to :host, class_name: 'Mdm::Host', inverse_of: :events belongs_to :workspace, class_name: 'Mdm::Workspace', inverse_of: :events # # Scopes # scope :flagged, where(:critical => true, :seen => false) scope :module_run, where(:name => 'module_run') # # Serializations # serialize :info, MetasploitDataModels::Base64Serializer.new # # Validations # validates :name, :presence => true Metasploit::Concern.run(self) end
Version data entries
59 entries across 59 versions & 1 rubygems