diff options
author | root <root@ot-dev.in-silico.ch> | 2011-03-03 12:36:10 +0000 |
---|---|---|
committer | root <root@ot-dev.in-silico.ch> | 2011-03-03 12:36:10 +0000 |
commit | d0dbdc711cddff823db456136a2604ab1912ee53 (patch) | |
tree | 1675dbc426fb09a3b2a4d67d0ad88664d52f94be /application.rb | |
parent | 6e9d20a1417ad2f4548194d226f6b3f2b3c47036 (diff) |
remaining merge conflicts removed
Diffstat (limited to 'application.rb')
-rwxr-xr-x | application.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/application.rb b/application.rb index f543167..ad9653a 100755 --- a/application.rb +++ b/application.rb @@ -3,6 +3,14 @@ gem "opentox-ruby", "~> 0" [ 'sinatra', 'sinatra/url_for', 'opentox-ruby' ].each do |lib| require lib end +['dm-core', 'dm-serializer', 'dm-timestamps', 'dm-types', 'dm-migrations', 'dm-validations' ].each{|lib| require lib } +DataMapper.setup(:default, { + :adapter => CONFIG[:database][:adapter], + :database => CONFIG[:database][:database], + :username => CONFIG[:database][:username], + :password => CONFIG[:database][:password], + :host => CONFIG[:database][:host]}) +set :lock, true #unless(defined? LOGGER) #LOGGER = Logger.new(STDOUT) |