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'