Sha256: c54ef9a2f2e65b4f5f5eade2357865ca0b0fdc0afc27bd37532ddaa6b36fe123
Contents?: true
Size: 1.79 KB
Versions: 17
Compression:
Stored size: 1.79 KB
Contents
# require File.expand_path('../../config/environment', __FILE__) # Load the Rails application. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'rails' %w[ action_controller/railtie action_view/railtie action_mailer/railtie active_job/railtie action_cable/engine rails/test_unit/railtie sprockets/railtie ].each do |railtie| require railtie rescue LoadError => error puts 'Unable to load libraries' puts error.message end require 'haml' require 'mail' require 'cancancan' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module WebCore class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Configure redis cache config.eager_load = false config.cache_store = :redis_cache_store, { url: 'redis://127.0.0.1:6379/11' } config.autoload_paths += %W[#{config.root}/lib] config.generators do |g| g.template_engine :haml g.orm :mongoid g.test_framework :shoulda g.fallbacks[:shoulda] = :test_unit g.fixture_replacement :factory_bot end config.active_job.queue_adapter = :delayed_job # Configure the default encoding used in templates for Ruby 1.9. config.encoding = 'utf-8' config.logger = Logger.new($stdout) config.logger.level = Logger::DEBUG end end Delayed::Worker.delay_jobs = false # Initialize the Rails application. Rails.application.initialize! Rails.application.config.filter_parameters += %w[password password_confirmation]
Version data entries
17 entries across 17 versions & 1 rubygems