Sha256: 72f5da0ea5d72fbdcd78c72ac6d6883c473473aefc6f5e62b6ed15478c669a49

Contents?: true

Size: 378 Bytes

Versions: 10

Compression:

Stored size: 378 Bytes

Contents

require 'tophat'
require 'tophat/reset'
require 'rails'

module TopHat
  class Railtie < Rails::Railtie

    initializer "tophat.view_helpers" do |app|
      TopHat.setup
    end

    # Clear the identity map after each request
    initializer "tophat.reset" do |app|
      ActiveSupport.on_load(:action_controller) do
        include(TopHat::Reset)
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/tophat-2.3.1/lib/tophat/railtie.rb
tophat-2.3.1 lib/tophat/railtie.rb
tophat-2.3.0 lib/tophat/railtie.rb
tophat-2.2.1 lib/tophat/railtie.rb
tophat-2.2.0 lib/tophat/railtie.rb
tophat-2.1.0 lib/tophat/railtie.rb
tophat-2.0.0 lib/tophat/railtie.rb
tophat-1.7.2 lib/tophat/railtie.rb
tophat-1.7.1 lib/tophat/railtie.rb
tophat-1.7.0 lib/tophat/railtie.rb