diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-17 18:16:21 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-17 18:16:21 +0900 |
commit | 4ad1a52f5ac0f2ee143aa5db05def6596ee6ffb0 (patch) | |
tree | c2a5ed36ad4f0d86eae4ede11e4323f464698f64 | |
parent | 8e2feedd31df969746898f22576db4d605fc9d9c (diff) | |
download | rails-4ad1a52f5ac0f2ee143aa5db05def6596ee6ffb0.tar.gz rails-4ad1a52f5ac0f2ee143aa5db05def6596ee6ffb0.tar.bz2 rails-4ad1a52f5ac0f2ee143aa5db05def6596ee6ffb0.zip |
All currently supported rubies already have LoadError#path
-rw-r--r-- | activesupport/lib/active_support/core_ext/load_error.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activesupport/lib/active_support/core_ext/load_error.rb b/activesupport/lib/active_support/core_ext/load_error.rb index 029d6dd449..d273487010 100644 --- a/activesupport/lib/active_support/core_ext/load_error.rb +++ b/activesupport/lib/active_support/core_ext/load_error.rb @@ -6,18 +6,6 @@ class LoadError /^cannot load such file -- (.+)$/i, ] - unless method_defined?(:path) - # Returns the path which was unable to be loaded. - def path - @path ||= begin - REGEXPS.find do |regex| - message =~ regex - end - $1 - end - end - end - # Returns true if the given path name (except perhaps for the ".rb" # extension) is the missing file which caused the exception to be raised. def is_missing?(location) |