application.rb-sample 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. require_relative 'boot'
  2. require 'rails/all'
  3. # Require the gems listed in Gemfile, including any gems
  4. # you've limited to :test, :development, or :production.
  5. Bundler.require(*Rails.groups)
  6. module Request
  7. class Application < Rails::Application
  8. # Settings in config/environments/* take precedence over those specified here.
  9. # Application configuration should go into files in config/initializers
  10. # -- all .rb files in that directory are automatically loaded.
  11. config.time_zone = 'Moscow'
  12. config.i18n.default_locale = :ru
  13. #config.rubycas.cas_base_url = 'https://login.mephi.ru/'
  14. #config.rubycas.logger = Rails.logger
  15. config.rack_cas.server_url = 'https://login.mephi.ru/'
  16. config.rack_cas.protocol = 'p3'
  17. require 'rack-cas/session_store/active_record'
  18. config.rack_cas.session_store = RackCAS::ActiveRecordStore
  19. #require 'rack-cas/session-store/rack/active_record'
  20. #use Rack::Session::RackCASActiveRecordStore
  21. config.cache_store = :memory_store, { size: 256.megabytes }
  22. config.action_controller.perform_caching = true
  23. end
  24. end