Sha256: d0558675557f6b7415506af5acd9147ab1a48112f0f8a291f4e0fb9e4b2f628d

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

# Namespace for models
module Mdm
  extend ActiveSupport::Autoload

  autoload :ApiKey
  autoload :Client
  autoload :Cred
  autoload :Event
  autoload :ExploitAttempt
  autoload :ExploitedHost
  autoload :Host
  autoload :HostDetail
  autoload :HostTag
  autoload :Listener
  autoload :Loot
  autoload :Macro
  autoload :ModRef
  autoload :Module
  autoload :NexposeConsole
  autoload :Note
  autoload :Payload
  autoload :Profile
  autoload :Ref
  autoload :Route
  autoload :Service
  autoload :Session
  autoload :SessionEvent
  autoload :Tag
  autoload :Task
  autoload :TaskCred
  autoload :TaskHost
  autoload :TaskService
  autoload :TaskSession
  autoload :User
  autoload :Vuln
  autoload :VulnAttempt
  autoload :VulnDetail
  autoload :VulnRef
  autoload :WebForm
  autoload :WebPage
  autoload :WebSite
  autoload :WebVuln
  autoload :WmapRequest
  autoload :WmapTarget
  autoload :Workspace

  # Causes the model_name for all Mdm modules to not include the Mdm:: prefix in their name.
  #
  # This has been supported since ActiveSupport 3.2.1.  In ActiveSupport 3.1.0, it checked for _railtie.  Before that
  # there was no way to do relative naming without manually overriding model_name in each class.
  #
  # @return [true]
  def self.use_relative_model_naming?
    true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.8 lib/mdm.rb
metasploit_data_models-3.0.6 lib/mdm.rb