aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/datamapper.rb
blob: 18143029517261717ba132be65ee5dd5bf26489c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
#
# Small loader to put all our Datamapper requirements together
#
#
require 'dm-core'
require 'dm-migrations'
require 'dm-aggregates'
%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-with-empty-errors-hack'

# DataMapper::Model.raise_on_save_failure = true