Skip to content

Commit 0e75f62

Browse files
committed
Add examples for first_clean_frame and first_clean_location
1 parent 1c220f6 commit 0e75f62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2025-06-27-this-week-in-rails.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Now re-entering the executor will properly save and restore that state.
2121

2222
[Implement ActiveSupport::BacktraceCleaner#first_clean_frame](https://github.com/rails/rails/pull/55222)
2323
The new method `ActiveSupport::BacktraceCleaner#first_clean_frame` returns the first clean frame of the caller's backtrace, or `nil`.
24-
Useful when you want to report the application-level frame where something happened as a string.
24+
Useful when you want to report the application-level frame where something happened, for example the caller that emitted a warning you are tracking in production.
2525

2626
[Implement ActiveSupport::BacktraceCleaner#first_clean_location](https://github.com/rails/rails/pull/55230)
2727
The new method `ActiveSupport::BacktraceCleaner#first_clean_location` returns the first clean location of the caller's call stack, or `nil`.
28-
Locations are `Thread::Backtrace::Location` objects. Useful when you want to report the application-level location where something happened as an object.
28+
Locations are `Thread::Backtrace::Location` objects. Useful when you want to report the application-level location where something happened, for example the source file and line number of a warning you are tracking in production.
2929

3030
[Respect users configured IRB_NAME](https://github.com/rails/rails/pull/55217)
3131
Rails will now honor when the user has configured `IRB.conf[:IRB_NAME]`.

0 commit comments

Comments
 (0)