Sha256: f8fd2b94f066d1d247155b8f4eec07aec70ae14498e9b53a0de48bc2f77fd4de

Contents?: true

Size: 361 Bytes

Versions: 12

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module DatabaseRewinder
  class Railtie < ::Rails::Railtie
    initializer 'database_rewinder', after: 'active_record.initialize_database' do
      ActiveSupport.on_load :active_record do
        DatabaseRewinder.init
        require_relative 'active_record_monkey'

        require_relative 'cleaner'
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
database_rewinder-1.1.0 lib/database_rewinder/railtie.rb
database_rewinder-1.0.1 lib/database_rewinder/railtie.rb
database_rewinder-1.0.0 lib/database_rewinder/railtie.rb
database_rewinder-0.9.9 lib/database_rewinder/railtie.rb
database_rewinder-0.9.8 lib/database_rewinder/railtie.rb
database_rewinder-0.9.7 lib/database_rewinder/railtie.rb
database_rewinder-0.9.6 lib/database_rewinder/railtie.rb
database_rewinder-0.9.5 lib/database_rewinder/railtie.rb
database_rewinder-0.9.4 lib/database_rewinder/railtie.rb
database_rewinder-0.9.3 lib/database_rewinder/railtie.rb
database_rewinder-0.9.2 lib/database_rewinder/railtie.rb
database_rewinder-0.9.1 lib/database_rewinder/railtie.rb