5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/changebase/replication.rb', line 5
def self.load!
require 'active_record'
::ActiveRecord::Base.include(Changebase::ActiveRecord)
::ActiveRecord::ConnectionAdapters::AbstractAdapter.include(Changebase::ActiveRecord::Connection)
require 'active_record/connection_adapters/postgresql_adapter'
require 'changebase/replication/active_record'
::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.include(Changebase::Replication::ActiveRecord::PostgreSQLAdapter)
@loaded = true
end
|