Sha256: 401dd028e17230aed58b470a5ab54356f91b47ef5e598116851acb0d8f2ab38a

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

module EbisuConnection
  class Railtie < Rails::Railtie
    initializer "fresh_connection.initialize_database", after: "active_record.initialize_database" do
      ActiveSupport.on_load(:active_record) do
        ActiveRecord::Base.establish_fresh_connection
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ebisu_connection-2.4.0 lib/ebisu_connection/railtie.rb
ebisu_connection-2.4.0.rc4 lib/ebisu_connection/railtie.rb
ebisu_connection-2.4.0.rc3 lib/ebisu_connection/railtie.rb
ebisu_connection-2.4.0.rc2 lib/ebisu_connection/railtie.rb
ebisu_connection-2.4.0.rc1 lib/ebisu_connection/railtie.rb