File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
activesupport/lib/active_support Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ def first_clean_frame(kind = :silent)
108
108
if Thread . method ( :each_caller_location ) . arity == 0
109
109
# Returns the first clean location of the caller's call stack, or +nil+.
110
110
#
111
- # Locations are Thread::Backtrace::Location objects.
111
+ # Locations are Thread::Backtrace::Location objects. Since they are
112
+ # immutable, their +path+ attributes are the original ones, but filters
113
+ # are applied internally so silencers can still rely on them.
112
114
def first_clean_location ( kind = :silent )
113
115
caller_location_skipped = false
114
116
@@ -124,7 +126,9 @@ def first_clean_location(kind = :silent)
124
126
else
125
127
# Returns the first clean location of the caller's call stack, or +nil+.
126
128
#
127
- # Locations are Thread::Backtrace::Location objects.
129
+ # Locations are Thread::Backtrace::Location objects. Since they are
130
+ # immutable, their +path+ attributes are the original ones, but filters
131
+ # are applied internally so silencers can still rely on them.
128
132
def first_clean_location ( kind = :silent )
129
133
Thread . each_caller_location ( 2 ) do |location |
130
134
return location if clean_frame ( location , kind )
You can’t perform that action at this time.
0 commit comments