aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/datamapper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/datamapper.rb')
-rw-r--r--lib/mauve/datamapper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/mauve/datamapper.rb b/lib/mauve/datamapper.rb
index abf56c7..e7334da 100644
--- a/lib/mauve/datamapper.rb
+++ b/lib/mauve/datamapper.rb
@@ -6,7 +6,13 @@
require 'dm-core'
require 'dm-migrations'
require 'dm-serializer'
-require 'dm-sqlite-adapter-with-mutex'
+%w(dm-sqlite-adapter-with-mutex dm-postgres-adapter).each do |req|
+ begin
+ require req
+ rescue LoadError => err
+ # do not a lot.
+ end
+end
require 'dm-types'
require 'dm-validations'