| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
config.cache_classes = true |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
config.log_level = :warn |
| 13 |
|
| 14 |
|
| 15 |
config.action_controller.consider_all_requests_local = false |
| 16 |
config.action_controller.perform_caching = true |
| 17 |
|
| 18 |
cache_dir = File.expand_path(File.join(RAILS_ROOT, 'public', 'cache')) |
| 19 |
config.action_controller.page_cache_directory = cache_dir |
| 20 |
config.action_controller.fragment_cache_store = :file_store, File.join(cache_dir, "fragments") |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
ActionMailer::Base.default_url_options[:host] = |
| 27 |
YAML.load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))["gitorious_host"] |
| 28 |
|
| 29 |
|
| 30 |
ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT, |
| 31 |
"config/gitorious.yml"))["exception_notification_emails"] |
| 32 |
ExceptionNotifier.class_eval do |
| 33 |
remove_method :template_root |
| 34 |
ExceptionNotifier.template_root = "#{RAILS_ROOT}/vendor/plugins/exception_notification/lib/../views" |
| 35 |
end |