diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-16 16:04:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-16 16:04:26 +0200 |
commit | f87d518809541d2c89acdb36d5a2a96cab3ab50b (patch) | |
tree | 8056f843c35e0bc759872a97b4e5b780aaef3af0 /activerecord | |
parent | 96851dcee6a11f3ca48abaa34b1d38bb4766406e (diff) | |
parent | 0bab6310d623f9f8ed382c93ddeb9f4d1a0b8f75 (diff) | |
download | rails-f87d518809541d2c89acdb36d5a2a96cab3ab50b.tar.gz rails-f87d518809541d2c89acdb36d5a2a96cab3ab50b.tar.bz2 rails-f87d518809541d2c89acdb36d5a2a96cab3ab50b.zip |
Merge pull request #35985 from jhawthorn/lazy_backtrace_clean
Find query_source_location using lazy Enumerator
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/log_subscriber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/log_subscriber.rb b/activerecord/lib/active_record/log_subscriber.rb index 6b84431343..6248c2f578 100644 --- a/activerecord/lib/active_record/log_subscriber.rb +++ b/activerecord/lib/active_record/log_subscriber.rb @@ -110,7 +110,7 @@ module ActiveRecord end def extract_query_source_location(locations) - backtrace_cleaner.clean(locations).first + backtrace_cleaner.clean(locations.lazy).first end end end |