aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/datamapper.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-01-30 12:30:44 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-01-30 12:30:44 +0000
commita75a1088aaa150a5521e1acfa3a372520f3c3995 (patch)
tree11ec8c3cbb227305630924f62d2a49bb99399388 /lib/mauve/datamapper.rb
parent82d493d723c8a3c50b6fdbe3931a49b6b48443b4 (diff)
parent8ed82944ebd764f1986b3155990b895045b584bc (diff)
Merge
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'