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

Version Path
snapcher-0.3.1 lib/snapcher/railtie.rb
snapcher-0.3.0 lib/snapcher/railtie.rb
snapcher-0.1.5 lib/snapcher/railtie.rb
snapcher-0.1.4 lib/snapcher/railtie.rb
snapcher-0.1.3 lib/snapcher/railtie.rb
snapcher-0.1.2 lib/snapcher/railtie.rb
snapcher-0.1.1 lib/snapcher/railtie.rb