Sha256: e26d671769340c4c3dad631002d7349fc25fa3c5df9cfd18ebca7a652aa410ff
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module QueriesWatch class Railtie < Rails::Railtie initializer 'initialize_queries_watch', after: 'active_support.reset_all_current_attributes_instances' do |app| require 'queries_watch/subscriber' Subscriber.attach_to :active_record app.executor.to_complete(prepend: true) do Subscriber.flush end end ActiveSupport.on_load :action_view do require 'queries_watch/helpers' include Helpers end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
queries_watch-0.1.1 | lib/queries_watch/railtie.rb |
queries_watch-0.1.0 | lib/queries_watch/railtie.rb |