aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-17 18:16:21 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-17 18:16:21 +0900
commit4ad1a52f5ac0f2ee143aa5db05def6596ee6ffb0 (patch)
treec2a5ed36ad4f0d86eae4ede11e4323f464698f64
parent8e2feedd31df969746898f22576db4d605fc9d9c (diff)
downloadrails-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.rb12
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)