Sha256: 616ceb1045a97fb6575583daf29f16725566f1f46d70f07aab4dbf9aa19d847d

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

dir = Pathname(__FILE__).dirname.expand_path / 'adapters'

require dir / 'abstract_adapter'
require dir / 'in_memory_adapter'

# NOTE: this is a temporary work-around to the load error problems,
# and is better fixed in dm-core/next.  The main reason the fix is
# not applied in dm-core/master is because the change is non-trivial.

%w[ data_objects sqlite3 mysql postgres ].each do |gem|
  begin
    require dir / "#{gem}_adapter"
  rescue LoadError, Gem::Exception
    # ignore it
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
datamapper-dm-core-0.9.11 lib/dm-core/adapters.rb
rpbertp13-dm-core-0.9.11.1 lib/dm-core/adapters.rb
rpbertp13-dm-core-0.9.11.2 lib/dm-core/adapters.rb
dm-core-0.9.11 lib/dm-core/adapters.rb