Sha256: 90205e49026af2313d3124b9be93e8425c6b3133ed0f20ccec1cc0eacadc2ad4

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

module ActiveRecord::Turntable
  class Railtie < Rails::Railtie
    rake_tasks do
      load "active_record/turntable/railties/databases.rake"
    end

    # rails loading hook
    ActiveSupport.on_load(:before_initialize) do
      ActiveSupport.on_load(:active_record) do
        ActiveRecord::Base.send(:include, ActiveRecord::Turntable)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-turntable-1.1.0 lib/active_record/turntable/railtie.rb
activerecord-turntable-1.0.1 lib/active_record/turntable/railtie.rb
activerecord-turntable-1.0.0 lib/active_record/turntable/railtie.rb