Sha256: f282a27ead863d5a4ffdacfb385cbe84943d1da527ce6a2847ed7a294f17ee5a

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

require 'rails'

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'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
database_rewinder-0.2.0 lib/database_rewinder/railtie.rb
database_rewinder-0.1.0 lib/database_rewinder/railtie.rb
database_rewinder-0.0.3 lib/database_rewinder/railtie.rb
database_rewinder-0.0.2 lib/database_rewinder/railtie.rb
database_rewinder-0.0.1 lib/database_rewinder/railtie.rb