summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'