diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2017-08-03 18:51:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-03 18:51:28 -0400 |
commit | 050bbb1f3329bd4fe7740e7feb572e95c246d49e (patch) | |
tree | 8deb7a15e8e01555f8b6b5c3fa90c736c7ab4687 | |
parent | f7d0bd657f5003ceede4c7e6322cb0f013db06a8 (diff) | |
parent | 23106de54f912d949fae023a4ec57223478ec036 (diff) | |
download | rails-050bbb1f3329bd4fe7740e7feb572e95c246d49e.tar.gz rails-050bbb1f3329bd4fe7740e7feb572e95c246d49e.tar.bz2 rails-050bbb1f3329bd4fe7740e7feb572e95c246d49e.zip |
Merge pull request #30052 from y-yagi/deprecate_load_error_regexps
Deprecate `LoadError::REGEXPS` constant
-rw-r--r-- | activesupport/lib/active_support/core_ext/load_error.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/load_error.rb b/activesupport/lib/active_support/core_ext/load_error.rb index c3939b5d0b..750f858fcc 100644 --- a/activesupport/lib/active_support/core_ext/load_error.rb +++ b/activesupport/lib/active_support/core_ext/load_error.rb @@ -1,13 +1,6 @@ # frozen_string_literal: true class LoadError - REGEXPS = [ - /^no such file to load -- (.+)$/i, - /^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, - /^Missing API definition file in (.+)$/i, - /^cannot load such file -- (.+)$/i, - ] - # 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) |