application.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
 (HTM) git clone git://jay.scot/warvox
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       application.rb (1407B)
       ---
            1 require_relative 'boot'
            2 
            3 require "rails"
            4 # Pick the frameworks you want:
            5 require "active_model/railtie"
            6 require "active_record/railtie"
            7 require "action_controller/railtie"
            8 require "action_mailer/railtie"
            9 require "action_view/railtie"
           10 require "sprockets/railtie"
           11 
           12 # Require the gems listed in Gemfile, including any gems
           13 # you've limited to :test, :development, or :production.
           14 Bundler.require(*Rails.groups)
           15 
           16 module Web
           17   class Application < Rails::Application
           18     # Settings in config/environments/* take precedence over those specified here.
           19     # Application configuration should go into files in config/initializers
           20     # -- all .rb files in that directory are automatically loaded.
           21 
           22     # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
           23     # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
           24     # config.time_zone = 'Central Time (US & Canada)'
           25 
           26     # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
           27     # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
           28     # config.i18n.default_locale = :de
           29 
           30     # Bootstrap the WarVOX code base
           31     config.autoload_paths << "#{Rails.root}/lib"
           32     require 'warvox'
           33 
           34     config.encoding = "utf-8"
           35 
           36     # Enable escaping HTML in JSON.
           37     config.active_support.escape_html_entities_in_json = true
           38   end
           39 end