Sha256: 3d553bc5bb7861893e80b7e9eadd8b44f9e14e5e10986e27b84f91b8f0aef308
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true module ActionController module QueryTags # :nodoc: extend ActiveSupport::Concern included do around_action :expose_controller_to_query_logs end private def expose_controller_to_query_logs(&block) ActiveRecord::QueryLogs.set_context(controller: self, &block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionpack-7.0.0.alpha2 | lib/action_controller/metal/query_tags.rb |
actionpack-7.0.0.alpha1 | lib/action_controller/metal/query_tags.rb |