Skip to content

Commit

Permalink
Ensure AS::Deprecation::Reporting constants stay private
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak committed Sep 9, 2024
1 parent 139cca9 commit 361a545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/deprecation/reporting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?("<internal:")
Expand Down

0 comments on commit 361a545

Please sign in to comment.