Sha256: 9b57b4384e1889e2b71b9ed39ae7928a28c1ffb310df5277f5655db017292650

Contents?: true

Size: 449 Bytes

Versions: 148

Compression:

Stored size: 449 Bytes

Contents

module Jets::Db ; end

# Thanks: https://makandracards.com/makandra/42521-detecting-if-a-ruby-gem-is-loaded
if File.exist?("#{Jets.root}/config/database.yml")
  require "active_record"
  specs = Gem.loaded_specs
  require "mysql2" if specs.key?('mysql2')
  require "pg" if specs.key?('pg')
end

if File.exist?("#{Jets.root}/config/dynamodb.yml")
  specs = Gem.loaded_specs
  specs.key?('dynomite')
  require "dynomite" if specs.key?('dynomite')
end

Version data entries

148 entries across 148 versions & 4 rubygems

Version Path
jets-4.0.12 lib/jets/db.rb
jets-4.0.11 lib/jets/db.rb
jets-4.0.10 lib/jets/db.rb
jets-4.0.9 lib/jets/db.rb
jets-4.0.8 lib/jets/db.rb
jets-4.0.7 lib/jets/db.rb
jets-4.0.6 lib/jets/db.rb
jets-4.0.5 lib/jets/db.rb
jets-4.0.4 lib/jets/db.rb
jets-4.0.3 lib/jets/db.rb
jets-4.0.2 lib/jets/db.rb
jets-4.0.1 lib/jets/db.rb
jets-4.0.0 lib/jets/db.rb
jets-3.2.2 lib/jets/db.rb
jets-3.2.1 lib/jets/db.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/db.rb
jets-3.2.0 lib/jets/db.rb
jets-3.1.5 lib/jets/db.rb
jets-3.1.4 lib/jets/db.rb
jets-3.1.3 lib/jets/db.rb