diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-14 11:25:52 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-14 11:25:52 +0000 |
commit | 8e43fc5ace8039370f233570863b34821a3be46f (patch) | |
tree | dc2340763cf1ec84eecfd1e7cebbaa680477c1bd /activesupport | |
parent | b93a2571864eb858abc8b2f02f393f6751affc27 (diff) | |
download | rails-8e43fc5ace8039370f233570863b34821a3be46f.tar.gz rails-8e43fc5ace8039370f233570863b34821a3be46f.tar.bz2 rails-8e43fc5ace8039370f233570863b34821a3be46f.zip |
Remove deprecated constant MissingSourceFIle
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/load_error.rb | 2 | ||||
-rw-r--r-- | activesupport/test/core_ext/load_error_test.rb | 8 |
3 files changed, 4 insertions, 10 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 8a7bab0577..372583c533 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,7 @@ +* Remove deprecated constant `MissingSourceFile` + + *Andrew White* + * Remove deprecated methods `Module.qualified_const_defined?`, `Module.qualified_const_get` and `Module.qualified_const_set` diff --git a/activesupport/lib/active_support/core_ext/load_error.rb b/activesupport/lib/active_support/core_ext/load_error.rb index cd00d1b662..3cf7ea0a97 100644 --- a/activesupport/lib/active_support/core_ext/load_error.rb +++ b/activesupport/lib/active_support/core_ext/load_error.rb @@ -27,5 +27,3 @@ class LoadError location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze) end end - -MissingSourceFile = ActiveSupport::Deprecation::DeprecatedConstantProxy.new("MissingSourceFile", "LoadError") diff --git a/activesupport/test/core_ext/load_error_test.rb b/activesupport/test/core_ext/load_error_test.rb index b50a35b2cb..44ff6bb051 100644 --- a/activesupport/test/core_ext/load_error_test.rb +++ b/activesupport/test/core_ext/load_error_test.rb @@ -1,14 +1,6 @@ require "abstract_unit" require "active_support/core_ext/load_error" -class TestMissingSourceFile < ActiveSupport::TestCase - def test_it_is_deprecated - assert_deprecated do - MissingSourceFile.new - end - end -end - class TestLoadError < ActiveSupport::TestCase def test_with_require assert_raise(LoadError) { require 'no_this_file_don\'t_exist' } |