fixes for failed cron maintenance tasks

* update rails scripts for 5.2
* system dmails should be scoped to system
* fix broken url generator in forum notices
This commit is contained in:
Albert Yi
2018-04-27 14:44:43 -07:00
parent 907881aced
commit 664a3f02e2
16 changed files with 139 additions and 46 deletions

View File

@@ -15,7 +15,7 @@ Rails.application.configure do
# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
}
# Show full error reports and disable caching.
@@ -27,6 +27,10 @@ Rails.application.configure do
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
# Store uploaded files on the local file system in a temporary directory
config.active_storage.service = :test
config.action_mailer.perform_caching = false
# Tell Action Mailer not to deliver emails to the real world.