Sha256: 319c1744340b05a5ca0b907b6ce9caec667a543417546b5b8a3017b4c3786c8e
Contents?: true
Size: 504 Bytes
Versions: 43
Compression:
Stored size: 504 Bytes
Contents
class Mdm::Event < ActiveRecord::Base # # Relations # belongs_to :host, :class_name => 'Mdm::Host' belongs_to :workspace, :class_name => 'Mdm::Workspace' # # 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 ActiveSupport.run_load_hooks(:mdm_event, self) end
Version data entries
43 entries across 43 versions & 1 rubygems