lib/generators/cream/helpers/all.rb in cream-0.8.9.3 vs lib/generators/cream/helpers/all.rb in cream-0.9.0
- old
+ new
@@ -3,11 +3,18 @@
module Cream
module GeneratorHelper
def logit!
if logging?
- require 'logging_assist'
+ add_logger
logger.add_logfile :logfile => logfile
+ end
+ end
+
+ def add_logger
+ require 'logging_assist'
+ class_eval do
+ send :include, RailsAssist::BasicLogger
end
end
def debug! msg
logger.debug msg if logging?
\ No newline at end of file