Sha256: 8c22e864cf70c6af6214fda36fced191fffa2ee30ca31d1f1600cdc227275832
Contents?: true
Size: 401 Bytes
Versions: 7
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true module Snapcher class Railtie < Rails::Railtie initializer "snapcher.sweeper" do ActiveSupport.on_load(:action_controller) do ActionController::Base.around_action Snapcher::Sweeper.new if defined?(ActionController::Base) ActionController::API.around_action Snapcher::Sweeper.new if defined?(ActionController::API) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems