Skip to content

Commit

Permalink
Merge pull request rails#52853 from zzak/as-deprecation-reporting-con…
Browse files Browse the repository at this point in the history
…stants-nodoc

Ensure AS::Deprecation::Reporting constants stay private
  • Loading branch information
kamipo committed Sep 10, 2024
2 parents 4abefde + 361a545 commit 1016673
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 1016673

Please sign in to comment.