Module: Mdm

Extended by:
ActiveSupport::Autoload
Defined in:
lib/mdm.rb

Overview

Namespace for models

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.use_relative_model_naming?true

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.

Returns:

  • (true)


54
55
56
# File 'lib/mdm.rb', line 54

def self.use_relative_model_naming?
  true
end