aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Ang <awz.ang@gmail.com>2016-03-15 10:51:48 +0100
committerAaron Ang <awz.ang@gmail.com>2016-03-16 10:47:25 +0100
commit758df587cc478a8ba58d922f768c3971b6a136c6 (patch)
tree4594929909d8854534341f04fd704a9852666203 /activesupport
parentbf6b65432ba3d2765c1fcea90d9969eb87f49625 (diff)
downloadrails-758df587cc478a8ba58d922f768c3971b6a136c6.tar.gz
rails-758df587cc478a8ba58d922f768c3971b6a136c6.tar.bz2
rails-758df587cc478a8ba58d922f768c3971b6a136c6.zip
Add comments to ActiveSupport::Dependencies to help understanding
In a previous patch, all log-related stuff was removed. However, some logs are still useful to understand the code. Therefore, in this patch, I put those log messages back as comments. [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index fc0a358645..ee62c0739e 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -734,6 +734,7 @@ module ActiveSupport #:nodoc:
begin
constantized = parent.const_get(to_remove, false)
rescue NameError
+ # Skip when const is unreachable.
return
else
constantized.before_remove_const if constantized.respond_to?(:before_remove_const)
@@ -743,6 +744,7 @@ module ActiveSupport #:nodoc:
begin
parent.instance_eval { remove_const to_remove }
rescue NameError
+ # Skip when const is unreachable.
end
end
end