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.5KB

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