Sha256: 60e7365aa614b96970c0e4c4aa9021d8801a6294d380a13d52aaee859a8ac5a3

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

Stored size: 640 Bytes

Contents

require "connection_manager/version"

module ConnectionManager
  require 'active_record'
  require 'connection_manager/connections'
  require 'connection_manager/associations'
  require 'connection_manager/secondary_connection_builder'
  require 'connection_manager/method_recorder'
  require 'connection_manager/connection_manager_railtie' if defined?(Rails) 
    
  ActiveRecord::Base.extend(ConnectionManager::Associations) 
  ActiveRecord::Base.extend(ConnectionManager::SecondaryConnectionBuilder)
  
  require 'connection_manager/cross_schema_patch.rb' if (ActiveRecord::VERSION::MAJOR == 3 && ActiveRecord::VERSION::MINOR == 0)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
connection_manager-0.2.6 lib/connection_manager.rb
connection_manager-0.2.5 lib/connection_manager.rb
connection_manager-0.2.4 lib/connection_manager.rb
connection_manager-0.2.3 lib/connection_manager.rb
connection_manager-0.2.2 lib/connection_manager.rb