Sha256: 7321303fd02deef5fd12e45e54947e7de3beaef97a4762fa6c9c1e631e7d658d

Contents?: true

Size: 275 Bytes

Versions: 23

Compression:

Stored size: 275 Bytes

Contents

module Other
  class Base < ActiveRecord::Base
    establish_connection "naf_#{Rails.env}"
    self.abstract_class = true
    def self.reset_warehousing_connection
      self.connection.disconnect!
      self.establish_connection "warehousing_#{Rails.env}"
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 spec/dummy/app/models/other/base.rb.sample
naf-2.1.12 spec/dummy/app/models/other/base.rb.sample
naf-2.1.11 spec/dummy/app/models/other/base.rb.sample
naf-2.1.10 spec/dummy/app/models/other/base.rb.sample
naf-2.1.9 spec/dummy/app/models/other/base.rb.sample
naf-2.1.8 spec/dummy/app/models/other/base.rb.sample
naf-2.1.6 spec/dummy/app/models/other/base.rb.sample
naf-2.1.5 spec/dummy/app/models/other/base.rb.sample
naf-2.1.4 spec/dummy/app/models/other/base.rb.sample
naf-2.1.3 spec/dummy/app/models/other/base.rb.sample
naf-2.1.2 spec/dummy/app/models/other/base.rb.sample
naf-2.1.1 spec/dummy/app/models/other/base.rb.sample
naf-2.1.0 spec/dummy/app/models/other/base.rb.sample
naf-2.0.4 spec/dummy/app/models/other/base.rb.sample
naf-2.0.3 spec/dummy/app/models/other/base.rb.sample
naf-2.0.2 spec/dummy/app/models/other/base.rb.sample
naf-2.0.1 spec/dummy/app/models/other/base.rb.sample
naf-2.0.0 spec/dummy/app/models/other/base.rb.sample
naf-1.1.4 spec/dummy/app/models/other/base.rb.sample
naf-1.1.3 spec/dummy/app/models/other/base.rb.sample