Sha256: cc86ef1f66dc308bc97e9d780fdc6a7274fa73b3bf70d5a4676a762e71b920bc
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
# # Core # require 'shellwords' # # Gems # require 'active_record' require 'active_support' require 'active_support/all' require 'active_support/dependencies' require 'metasploit/concern' require 'metasploit/model' # # Project # require 'mdm' require 'mdm/module' require 'metasploit_data_models/base64_serializer' require 'metasploit_data_models/version' require 'metasploit_data_models/serialized_prefs' # Only include the Rails engine when using Rails. if defined? Rails require 'metasploit_data_models/engine' end module MetasploitDataModels def self.root unless instance_variable_defined? :@root lib_pathname = Pathname.new(__FILE__).dirname @root = lib_pathname.parent end @root end end lib_pathname = MetasploitDataModels.root.join('lib') # has to work under 1.8.7, so can't use to_path lib_path = lib_pathname.to_s # Add path to gem's lib so that concerns for models are loaded correctly if models are reloaded ActiveSupport::Dependencies.autoload_paths << lib_path ActiveSupport::Dependencies.autoload_once_paths << lib_path
Version data entries
3 entries across 3 versions & 1 rubygems