Sha256: 5fcfa12030ee172b7794a5cff4d1f28d7dac3dea23dc8f61d6fd507cec2bda45

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module ActiveRecord
  class Base
    
    # Arel is concerned with "engines".  Normally the engine defaults to the primary
    # connection (ActiveRecord::Base).  This will let us easily override the engine 
    # when dealing with Seoncdbase models (deep in ActiveRecord code).
    # Since SecondBase::Base inherits from ActiveRecord::Base, this will pass the
    # right engine around.
    def self.engine
      self
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
secondbase-0.6.0 lib/secondbase/active_record/base.rb