aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-02 19:44:39 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-02 19:44:39 -0300
commit734d97d292b4f04c13f03625e07f2888e88b0649 (patch)
tree941f9ab3764da181497c36264fb74a7a598fb844 /activesupport/lib/active_support
parent48deeab90acd9f8f609fa461205a793c52f11ed2 (diff)
downloadrails-734d97d292b4f04c13f03625e07f2888e88b0649.tar.gz
rails-734d97d292b4f04c13f03625e07f2888e88b0649.tar.bz2
rails-734d97d292b4f04c13f03625e07f2888e88b0649.zip
Deprecate `MissingSourceFile` in favor of `LoadError`.
`MissingSourceFile` was just an alias to `LoadError` and was not being raised inside the framework.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/load_error.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/load_error.rb b/activesupport/lib/active_support/core_ext/load_error.rb
index 768b980f21..d9fb392752 100644
--- a/activesupport/lib/active_support/core_ext/load_error.rb
+++ b/activesupport/lib/active_support/core_ext/load_error.rb
@@ -1,3 +1,5 @@
+require 'active_support/deprecation/proxy_wrappers'
+
class LoadError
REGEXPS = [
/^no such file to load -- (.+)$/i,
@@ -25,4 +27,4 @@ class LoadError
end
end
-MissingSourceFile = LoadError
+MissingSourceFile = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('MissingSourceFile', 'LoadError')