diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-06-15 17:15:35 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-06-15 17:15:35 +0200 |
commit | ba287d744cdc929df7e3ed3986151b813ddf8fb1 (patch) | |
tree | fa095f0a854317d2812446e50072a0954748ab48 /lib | |
parent | 8f3018db36335a22bc72caa3c7a96aac2a95e57c (diff) |
updated for datamapper > 1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/environment.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/environment.rb b/lib/environment.rb index c112669..105f443 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -24,7 +24,7 @@ end # database if @@config[:database] - ['dm-core', 'dm-serializer', 'dm-timestamps', 'dm-types'].each{|lib| require lib } + ['dm-core', 'dm-serializer', 'dm-timestamps', 'dm-types', 'dm-migrations' ].each{|lib| require lib } case @@config[:database][:adapter] when /sqlite/i db_dir = File.join(basedir, "db") @@ -106,6 +106,7 @@ end logfile = "#{LOG_DIR}/#{ENV["RACK_ENV"]}.log" LOGGER = MyLogger.new(logfile,'daily') # daily rotation +LOGGER.level = Logger::WARN if ENV["RACK_ENV"] == 'production' #LOGGER = MyLogger.new(STDOUT) #LOGGER.datetime_format = "%Y-%m-%d %H:%M:%S " |