aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-12 15:23:30 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-12 15:23:30 +0000
commit084cc9574c254cc0af2de4cd615fa99a5be8bc83 (patch)
tree33120b867d7b9763e1958e06229ad8fa241f56f7
parent08224e154953ae105341e36371ca7f7a42079068 (diff)
Silence deprecation warnings.
The remaining deprecation warnings are for the plugins, and they interfere with incoming mail handling by producing output on stderr.
-rw-r--r--Rakefile1
-rw-r--r--config/environment.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 5fa2a360d..e134250fa 100644
--- a/Rakefile
+++ b/Rakefile
@@ -2,6 +2,7 @@
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
+ActiveSupport::Deprecation.silenced = true
require 'rake'
Alaveteli::Application.load_tasks
if Rails.env == 'test'
diff --git a/config/environment.rb b/config/environment.rb
index 196680b23..05f25a29e 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,5 +1,7 @@
+
# Load the rails application
require File.expand_path('../application', __FILE__)
+ActiveSupport::Deprecation.silenced = true
# Initialize the rails application
Alaveteli::Application.initialize!