From 0d69fa6bb1e1dc65b2d4870fc5bf1db08263e5b5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 15 Dec 2011 12:29:02 +0000 Subject: [PATCH] Patch for ruby1.9.3 compatibility. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8234 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/initializers/10-patches.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 12725e9c..591d02d5 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -12,6 +12,10 @@ # See doc/COPYRIGHT.rdoc for more details. #++ +# 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'