lib/flare.rb in flare-1.2.0 vs lib/flare.rb in flare-1.3.0

- old
+ new

@@ -20,7 +20,15 @@ end def indexed_models @@indexed_models ||= [] end + + def log(message) + if Object.const_defined?("ActiveRecord") + ActiveRecord::Base.logger.debug(message) + else + puts message + end + end end end \ No newline at end of file