summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-15 12:29:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-15 12:29:02 +0000
commitb99c2f4deefa9ffa20dd54a7952c3e6c36c7891e (patch)
tree6bb3715b10cace8ab9ea9cfa8ea73b19c1e50b12 /config/initializers
parentf27d42634712b20aaec5d09164b330a499542050 (diff)
downloadredmine-b99c2f4deefa9ffa20dd54a7952c3e6c36c7891e.tar.gz
redmine-b99c2f4deefa9ffa20dd54a7952c3e6c36c7891e.zip
Patch for ruby1.9.3 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8234 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/10-patches.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index f525e5946..ad301d887 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -1,3 +1,7 @@
+# Patches active_support/core_ext/load_error.rb to support 1.9.3 LoadError message
+if RUBY_VERSION >= '1.9.3'
+ MissingSourceFile::REGEXPS << [/^cannot load such file -- (.+)$/i, 1]
+end
require 'active_record'