12345678910111213141516171819202122232425262728293031 |
- require_relative 'boot'
- require 'rails/all'
- # Require the gems listed in Gemfile, including any gems
- # you've limited to :test, :development, or :production.
- Bundler.require(*Rails.groups)
- module Request
- 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.
- config.time_zone = 'Moscow'
- config.i18n.default_locale = :ru
- #config.rubycas.cas_base_url = 'https://login.mephi.ru/'
- #config.rubycas.logger = Rails.logger
- config.rack_cas.server_url = 'https://login.mephi.ru/'
- config.rack_cas.protocol = 'p3'
- require 'rack-cas/session_store/active_record'
- config.rack_cas.session_store = RackCAS::ActiveRecordStore
- #require 'rack-cas/session-store/rack/active_record'
- #use Rack::Session::RackCASActiveRecordStore
- config.cache_store = :memory_store, { size: 256.megabytes }
- config.action_controller.perform_caching = true
- end
- end
|