Guest User

Untitled

a guest
May 27th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
  2.  
  3. # Bootstrap the Rails environment, frameworks, and default configuration
  4. require File.join(File.dirname(__FILE__), 'boot')
  5. # require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
  6.  
  7. # for Authorization plugin, must be set before plugins are loaded
  8. AUTHORIZATION_MIXIN = "hardwired"
  9.  
  10. Rails::Initializer.run do |config|
  11. # Settings in config/environments/* take precedence over those specified here.
  12. # Application configuration should go into files in config/initializers
  13. # -- all .rb files in that directory are automatically loaded.
  14. # See Rails::Configuration for more options.
  15.  
  16. # Skip frameworks you're not going to use (only works if using vendor/rails).
  17. # To use Rails without a database, you must remove the Active Record framework
  18. # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
  19.  
  20. # Only load the plugins named here, in the order given. By default, all plugins
  21. # in vendor/plugins are loaded in alphabetical order.
  22. # :all can be used as a placeholder for all plugins not explicitly named
  23. config.plugins = [ :ssl_requirement, :all ]
  24.  
  25. # Add additional load paths for your own custom dirs
  26. # config.load_paths += %W( #{RAILS_ROOT}/extras )
  27.  
  28. # Force all environments to use the same logger level
  29. # (by default production uses :info, the others :debug)
  30. # config.log_level = :debug
  31.  
  32. # Your secret key for verifying cookie session data integrity.
  33. # If you change this key, all old sessions will become invalid!
  34. # Make sure the secret is at least 30 characters and all random,
  35. # no regular words or you'll be exposed to dictionary attacks.
  36. config.action_controller.session = {
  37. :session_key => '_x_session',
  38. :secret => '123'
  39. }
  40.  
  41. # Use the database for sessions instead of the cookie-based default,
  42. # which shouldn't be used to store highly confidential information
  43. # (create the session table with 'rake db:sessions:create')
  44. # config.action_controller.session_store = :active_record_store
  45. config.action_controller.session_store = :p_store
  46.  
  47. end
Add Comment
Please, Sign In to add comment