2016-07-07 17:47:47 -05:00
|
|
|
require_relative 'boot'
|
2016-01-12 18:43:00 -06:00
|
|
|
|
2018-03-29 02:15:47 -05:00
|
|
|
require "rails"
|
|
|
|
# Pick the frameworks you want:
|
|
|
|
require "active_model/railtie"
|
|
|
|
# require "active_job/railtie"
|
|
|
|
require "active_record/railtie"
|
|
|
|
# require "active_storage/engine"
|
|
|
|
require "action_controller/railtie"
|
|
|
|
require "action_mailer/railtie"
|
2020-05-02 14:12:04 -05:00
|
|
|
# require "action_mailbox/engine"
|
|
|
|
# require "action_text/engine"
|
2018-03-29 02:15:47 -05:00
|
|
|
require "action_view/railtie"
|
|
|
|
# require "action_cable/engine"
|
|
|
|
# require "sprockets/railtie"
|
|
|
|
require "rails/test_unit/railtie"
|
2016-01-12 18:43:00 -06:00
|
|
|
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
|
|
# you've limited to :test, :development, or :production.
|
|
|
|
Bundler.require(*Rails.groups)
|
|
|
|
|
2016-01-18 19:48:42 -06:00
|
|
|
module Parsley
|
2016-01-12 18:43:00 -06:00
|
|
|
class Application < Rails::Application
|
2020-05-02 14:12:04 -05:00
|
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
|
|
config.load_defaults 6.0
|
2016-01-12 18:43:00 -06:00
|
|
|
|
2018-04-02 11:21:35 -05:00
|
|
|
if ENV['RAILS_USE_MEMCACHE'] == 'true'
|
|
|
|
config.cache_store = :mem_cache_store, ENV['RAILS_MEMCACHE_HOST'] || 'memcache'
|
|
|
|
end
|
|
|
|
|
2016-01-21 14:25:11 -06:00
|
|
|
config.time_zone = 'Central Time (US & Canada)'
|
2020-05-02 14:12:04 -05:00
|
|
|
|
|
|
|
# Settings in config/environments/* take precedence over those specified here.
|
|
|
|
# Application configuration can go into files in config/initializers
|
|
|
|
# -- all .rb files in that directory are automatically loaded after loading
|
|
|
|
# the framework and any gems in your application.
|
2016-01-12 18:43:00 -06:00
|
|
|
end
|
|
|
|
end
|