application.rb-sample 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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.cps_api_key = 'SoMe_SeCrEt_KeY'
  22. config.cache_store = :memory_store, { size: 256.megabytes }
  23. config.action_controller.perform_caching = true
  24. end
  25. end