diff --git a/activesupport/lib/active_support/deprecation/reporting.rb b/activesupport/lib/active_support/deprecation/reporting.rb index 70e268f5e343a..d4da8b62667b9 100644 --- a/activesupport/lib/active_support/deprecation/reporting.rb +++ b/activesupport/lib/active_support/deprecation/reporting.rb @@ -168,8 +168,8 @@ def _extract_callstack(callstack) end end - RAILS_GEM_ROOT = File.expand_path("../../../..", __dir__) + "/" - LIB_DIR = RbConfig::CONFIG["libdir"] + RAILS_GEM_ROOT = File.expand_path("../../../..", __dir__) + "/" # :nodoc: + LIB_DIR = RbConfig::CONFIG["libdir"] # :nodoc: def ignored_callstack?(path) path.start_with?(RAILS_GEM_ROOT, LIB_DIR) || path.include?("