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:
parent
bf6b65432b
commit
758df587cc
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue