Per-env eager load settings for Rails 4

#5234
 MSP-12612
bug/bundler_fix
Trevor Rosen 2015-04-23 14:18:51 -05:00
parent 81b8a91774
commit be127e0c61
No known key found for this signature in database
GPG Key ID: 255ADB7A642D3928
1 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,15 @@ module Metasploit
config.paths['log'] = "#{Msf::Config.log_directory}/#{Rails.env}.log"
config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]
case Rails.env
when "development"
config.eager_load = false
when "test"
config.eager_load = false
when "production"
config.eager_load = true
end
end
end
end