2021-08-17 14:58:06 +02:00
|
|
|
require_relative 'boot'
|
2013-01-07 09:04:09 +01:00
|
|
|
|
|
|
|
|
require 'rails/all'
|
|
|
|
|
|
2021-08-17 14:58:06 +02: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
|
2021-08-17 14:58:06 +02:00
|
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
|
|
|
config.load_defaults 5.0
|
|
|
|
|
|
|
|
|
|
# Configuration for the application, engines, and railties goes here.
|
|
|
|
|
#
|
|
|
|
|
# These settings can be overridden in specific environments using the files
|
|
|
|
|
# in config/environments, which are processed later.
|
|
|
|
|
#
|
|
|
|
|
config.time_zone = ENV.fetch('OSEM_TIME_ZONE') { 'UTC' }
|
2013-01-07 09:04:09 +01:00
|
|
|
# Enable escaping HTML in JSON.
|
|
|
|
|
config.active_support.escape_html_entities_in_json = true
|
2021-08-17 14:58:06 +02:00
|
|
|
config.active_record.sqlite3.represent_boolean_as_integer = false
|
|
|
|
|
# Require `belongs_to` associations by default. Previous versions had false.
|
|
|
|
|
config.active_record.belongs_to_required_by_default = false
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
|
|
|
|
end
|