You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

environment.rb 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Be sure to restart your web server when you modify this file.
  2. # Uncomment below to force Rails into production mode when
  3. # you don't control web/app server and can't set it the proper way
  4. # ENV['RAILS_ENV'] ||= 'production'
  5. # Specifies gem version of Rails to use when vendor/rails is not present
  6. RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION
  7. # Bootstrap the Rails environment, frameworks, and default configuration
  8. require File.join(File.dirname(__FILE__), 'boot')
  9. if RUBY_VERSION >= '1.9' && defined?(Rails) && Rails::VERSION::MAJOR < 3
  10. Encoding.default_external = 'UTF-8'
  11. end
  12. # Load Engine plugin if available
  13. begin
  14. require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
  15. rescue LoadError
  16. # Not available
  17. end
  18. Rails::Initializer.run do |config|
  19. # Settings in config/environments/* take precedence those specified here
  20. # Skip frameworks you're not going to use
  21. # config.frameworks -= [ :action_web_service, :action_mailer ]
  22. # Add additional load paths for sweepers
  23. config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers )
  24. # Force all environments to use the same logger level
  25. # (by default production uses :info, the others :debug)
  26. # config.log_level = :debug
  27. # Enable page/fragment caching by setting a file-based store
  28. # (remember to create the caching directory and make it readable to the application)
  29. # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
  30. # Activate observers that should always be running
  31. # config.active_record.observers = :cacher, :garbage_collector
  32. config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer
  33. # Make Active Record use UTC-base instead of local time
  34. # config.active_record.default_timezone = :utc
  35. # Use Active Record's schema dumper instead of SQL when creating the test database
  36. # (enables use of different database adapters for development and test environments)
  37. # config.active_record.schema_format = :ruby
  38. # Deliveries are disabled by default. Do NOT modify this section.
  39. # Define your email configuration in configuration.yml instead.
  40. # It will automatically turn deliveries on
  41. config.action_mailer.perform_deliveries = false
  42. config.gem 'coderay', :version => '~>1.0.0'
  43. config.gem 'net-ldap', :version => '~>0.2.2'
  44. # Load any local configuration that is kept out of source control
  45. # (e.g. gems, patches).
  46. if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
  47. instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
  48. end
  49. end