Module: MetasploitDataModels::Models
Instance Method Summary
collapse
Methods included from Validators
#autoload_validators, #validators_pathname
Instance Method Details
#models_pathname ⇒ Object
7
8
9
|
# File 'lib/metasploit_data_models/models.rb', line 7
def models_pathname
app_pathname.join('models')
end
|
#require_models ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'lib/metasploit_data_models/models.rb', line 11
def require_models
autoload_validators
models_globs = models_pathname.join('**', '*.rb')
Dir.glob(models_globs) do |model_path|
require model_path
end
end
|