Module: Dynashard::ActiveRecordExtensions

Defined in:
lib/dynashard/model.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/dynashard/model.rb', line 3

def self.extended(base)
  base.extend(ClassMethods)

  class << base
    alias_method_chain :new,         :dynashard
    alias_method_chain :instantiate, :dynashard
    alias_method_chain :create,      :dynashard
    alias_method_chain :arel_engine, :dynashard
    alias_method_chain :connection,  :dynashard
  end
end