2016-08-10 17:20:10 -04:00
|
|
|
require_relative 'boot'
|
2013-01-07 09:04:09 +01:00
|
|
|
|
|
|
|
|
require 'rails/all'
|
|
|
|
|
|
2016-08-10 17:20:10 -04:00
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
|
|
|
# you've limited to :test, :development, or :production.
|
|
|
|
|
Bundler.require(*Rails.groups)
|
2013-01-07 09:04:09 +01:00
|
|
|
|
|
|
|
|
module Osem
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
# Activate observers that should always be running.
|
|
|
|
|
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
2013-07-08 10:03:03 +02:00
|
|
|
config.active_record.observers = :revision_observer
|
2013-01-07 09:04:09 +01:00
|
|
|
|
2016-08-10 17:20:10 -04:00
|
|
|
# Configure the default encoding used in templates for Ruby 2.3.1.
|
2014-08-18 21:54:43 +03:00
|
|
|
config.encoding = 'utf-8'
|
2013-01-07 09:04:09 +01:00
|
|
|
|
|
|
|
|
# Configure sensitive parameters which will be filtered from the log file.
|
|
|
|
|
config.filter_parameters += [:password]
|
|
|
|
|
|
|
|
|
|
# Enable escaping HTML in JSON.
|
|
|
|
|
config.active_support.escape_html_entities_in_json = true
|
|
|
|
|
|
|
|
|
|
# Version of your assets, change this if you want to expire all your assets
|
|
|
|
|
config.assets.version = '1.0'
|
2016-08-10 17:20:10 -04:00
|
|
|
|
2016-02-12 15:35:33 +05:30
|
|
|
# Errors raised within `after_rollback`/`after_commit` propagate normally
|
|
|
|
|
# like in other Active Record callbacks.
|
|
|
|
|
config.active_record.raise_in_transactional_callbacks = true
|
2016-04-20 18:59:24 +02:00
|
|
|
config.active_job.queue_adapter = :delayed_job
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
|
|
|
|
end
|