Module: DataFabric::Extensions

Defined in:
lib/data_fabric/extensions.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/data_fabric/extensions.rb', line 13

def self.included(model)
  DataFabric.logger.info { "Loading data_fabric #{DataFabric::Version::STRING} with ActiveRecord #{ActiveRecord::VERSION::STRING}" }

  # Wire up ActiveRecord::Base
  model.extend ClassMethods
  ConnectionProxy.shard_pools = {}
end