diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-12 15:24:42 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-12 15:24:42 +0000 |
commit | 3c844df6b1c97eaf2572a4db3c4dc69549982593 (patch) | |
tree | bda3480f2d76c858ca8fdabbe9b9443c81e2742f /script/handle-mail-replies.rb | |
parent | 084cc9574c254cc0af2de4cd615fa99a5be8bc83 (diff) |
Require activesupport before mail gem.
If activesupport isn't present, the mail gem will load it's own version,
and when rails is eventually loaded in this script, the warning
"warning: already initialized constant VALID CHARACTER" is written to
standard error.
Diffstat (limited to 'script/handle-mail-replies.rb')
-rwxr-xr-x | script/handle-mail-replies.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/handle-mail-replies.rb b/script/handle-mail-replies.rb index da0fc8e96..cbff03acb 100755 --- a/script/handle-mail-replies.rb +++ b/script/handle-mail-replies.rb @@ -20,6 +20,9 @@ $:.push(File.join($alaveteli_dir, "lib", "mail_handler")) load 'configuration.rb' MySociety::Config.set_file(File.join($alaveteli_dir, 'config', 'general'), true) MySociety::Config.load_default + + +require 'active_support/all' require 'mail_handler' if RUBY_VERSION.to_f >= 1.9 # the default encoding for IO is utf-8, and we use utf-8 internally |