1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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]
This commit is contained in:
Aaron Ang 2016-03-15 10:51:48 +01:00
parent bf6b65432b
commit 758df587cc

View file

@ -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