34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
require_relative "boot"
|
|
|
|
require "rails/all"
|
|
require 'rack-cas/session_store/active_record'
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
# you've limited to :test, :development, or :production.
|
|
Bundler.require(*Rails.groups)
|
|
|
|
module Scaffold
|
|
class Application < Rails::Application
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
config.load_defaults 7.0
|
|
|
|
|
|
I18n.available_locales = [:en, :ru]
|
|
config.i18n.default_locale = :ru
|
|
config.time_zone = 'Moscow'
|
|
|
|
config.rack_cas.session_store = RackCAS::ActiveRecordStore
|
|
config.rack_cas.server_url = 'https://auth.mephi.ru'
|
|
|
|
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
|
|
|
# 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 = "Central Time (US & Canada)"
|
|
# config.eager_load_paths << Rails.root.join("extras")
|
|
end
|
|
end
|