Skip to content

Commit

Permalink
Merge branch 'feature/MSP-11385/autoload' into feature/MSP-11385/rail…
Browse files Browse the repository at this point in the history
…s-4.0-autoload

MSP-11385
  • Loading branch information
limhoff-r7 committed Sep 24, 2014
2 parents 9a76b06 + 4d588e7 commit e73333c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/metasploit/model.rb
Expand Up @@ -11,13 +11,6 @@
# Protect attributes from mass-assignment in ActiveRecord models.
require 'protected_attributes'

#
# Project
#

require 'metasploit/model/engine'
require 'metasploit/model/version'

autoload :DerivationValidator, 'derivation_validator'
autoload :DynamicLengthValidator, 'dynamic_length_validator'
autoload :IpFormatValidator, 'ip_format_validator'
Expand Down Expand Up @@ -57,3 +50,11 @@ module Model
autoload :Visitation
end
end

#
# Project - require Metasploit::Model to be defined
#

# MUST require and not autoload as Rails::Engine loading works based subclass registration
require 'metasploit/model/engine'
require 'metasploit/model/version'

0 comments on commit e73333c

Please sign in to comment.