lib/earth/tasks.rb in earth-1.0.3 vs lib/earth/tasks.rb in earth-1.1.0

- old
+ new

@@ -29,9 +29,14 @@ @rails = Object.const_defined?('Rails') end def init_bare Object.const_set 'Rails', Earth + Earth.module_eval do + def self.logger + @logger ||= Logger.new(STDOUT) + end + end require 'active_record' load 'active_record/railties/databases.rake' Rake::Task['db:load_config'].clear