lib/smilodon.rb in smilodon-0.3.2 vs lib/smilodon.rb in smilodon-0.3.3
- old
+ new
@@ -1,9 +1,8 @@
require 'bundler/setup'
require 'smilodon/errors'
-require 'smilodon/logger'
require 'smilodon/railtie' if defined?(Rails)
# Smilodon includes helper methods to ease parsing data files.
# Assigning a header and iterating over rows is handled by the
# module via a simple configuration.
@@ -42,12 +41,9 @@
# @option options [String] :directory ('db/populate/data_files') The location of the data file.
# @option options [String] :type ('csv') The data file type.
# @option options [Boolean] :header Set true if the file has a header.
# @option options [String] :before The method to call before the run.
def populates(*args)
- # Setup the logger to log populator warnings and messages.
- self.logger = PopulateLogger.setup
-
options = args.last.is_a?(Hash) ? args.pop : {}
self.directory = if defined?(Rails)
"#{Rails.root}/#{options[:directory] || DIRECTORY}"
else