Sha256: 55e1a0b38f0ed82675604a60fe73eede282342502d680515bc2c2495f77563f8

Contents?: true

Size: 357 Bytes

Versions: 11

Compression:

Stored size: 357 Bytes

Contents

# Secondbase model definition
#
# NOTE: By extending this model, you assume that the underlying table will be located in your Second (Data)base
module SecondBase
  require 'active_record'
  
  class Base < ActiveRecord::Base
    establish_connection ActiveRecord::Base.configurations[CONNECTION_PREFIX][Rails.env]
  
    self.abstract_class = true
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
secondbase-0.5.0 lib/secondbase/model.rb
secondbase-0.4.3 lib/secondbase/model.rb
secondbase-0.4.2 lib/secondbase/model.rb
secondbase-0.4.1 lib/secondbase/model.rb
secondbase-0.4.0 lib/secondbase/model.rb
secondbase-0.3.3 lib/secondbase/model.rb
secondbase-0.3.2 lib/secondbase/model.rb
secondbase-0.3.1 lib/secondbase/model.rb
secondbase-0.3.0 lib/secondbase/model.rb
secondbase-0.2.0 lib/secondbase/model.rb
secondbase-0.1.0 lib/secondbase/model.rb