Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/config/application.rb
Views: 11704
require 'fiddle'1Fiddle.const_set(:VERSION, '0.0.0') unless Fiddle.const_defined?(:VERSION)23require 'rails'4require File.expand_path('../boot', __FILE__)56all_environments = [7:development,8:production,9:test10]1112Bundler.require(13*Rails.groups(14coverage: [:test],15db: all_environments,16pcap: all_environments17)18)1920#21# Railties22#2324# For compatibility with jquery-rails (and other engines that need action_view) in pro25require 'action_controller/railtie'26require 'action_view/railtie'2728#29# Project30#3132require 'metasploit/framework/common_engine'33require 'metasploit/framework/database'34module Metasploit35module Framework36class Application < Rails::Application37include Metasploit::Framework::CommonEngine3839config.paths['log'] = "#{Msf::Config.log_directory}/#{Rails.env}.log"40config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]41config.autoloader = :zeitwerk4243case Rails.env44when "development"45config.eager_load = false46when "test"47config.eager_load = false48when "production"49config.eager_load = false50end5152if ActiveRecord.respond_to?(:legacy_connection_handling=)53ActiveRecord.legacy_connection_handling = false54end55end56end57end5859# Silence warnings about this defaulting to true60I18n.enforce_available_locales = true61require 'msfenv'626364