docs, get rid of artifact in `RecordFetchWarning` docs.

[ci skip]

There was a `ActiveRecord::Relation::RecordFetchWarning::ActiveSupport`
artifact caused by subscribing to AS notifications.
This commit is contained in:
Yves Senn 2015-11-07 13:17:14 -05:00
parent b4250b5c92
commit cfd5b0007b
1 changed files with 2 additions and 0 deletions

View File

@ -23,11 +23,13 @@ module ActiveRecord
end
end
# :stopdoc:
ActiveSupport::Notifications.subscribe("sql.active_record") do |*args|
payload = args.last
QueryRegistry.queries << payload[:sql]
end
# :startdoc:
class QueryRegistry # :nodoc:
extend ActiveSupport::PerThreadRegistry