From 9f91e5438a32f0b3b5b3755adfa20d4e0d36566b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Sun, 27 Feb 2011 09:32:57 +0100 Subject: code cleanup --- lib/environment.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/environment.rb b/lib/environment.rb index 73df64e..4f04e48 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -23,10 +23,9 @@ else end # database +=begin if CONFIG[:database] ['dm-core', 'dm-serializer', 'dm-timestamps', 'dm-types', 'dm-migrations', 'dm-validations' ].each{|lib| require lib } -=begin -=end case CONFIG[:database][:adapter] when /sqlite/i db_dir = File.join(basedir, "db") @@ -52,9 +51,10 @@ if CONFIG[:database] #DataMapper.setup(:default, {:adapter => "redis"}) #DataMapper::Model.raise_on_save_failure = true - require 'ohm' - Ohm.connect :thread_safe => true end +=end +require 'ohm' +Ohm.connect :thread_safe => true # load mail settings for error messages load File.join config_dir,"mail.rb" if File.exists?(File.join config_dir,"mail.rb") -- cgit v1.2.3