Sha256: 7c24e50ce401fcfae5338a7ad7e048fcc525aa161412dbe7bab3186fe7c0003b

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

module Tochtli
  class Engine < ::Rails::Engine

    initializer :eager_load_messages, :before => :bootstrap_hook do
      Tochtli.eager_load_service_messages
    end

    initializer :use_active_record_connection_release do
      ActiveSupport.on_load(:active_record) do
        Tochtli.application.middlewares.use Tochtli::ActiveRecordConnectionCleaner
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tochtli-0.5.1 lib/tochtli/engine.rb
tochtli-0.5.0 lib/tochtli/engine.rb