parsley/config/application.rb

36 lines
1.2 KiB
Ruby
Raw Normal View History

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"
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
# 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.
2018-03-29 02:15:47 -05:00
config.load_defaults 5.2
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-12 18:43:00 -06:00
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
2016-01-21 14:25:11 -06:00
config.time_zone = 'Central Time (US & Canada)'
2016-01-12 18:43:00 -06:00
end
end