Removing unnecessary logger creation.

This commit is contained in:
Zach Dennis 2010-03-13 20:26:17 -05:00
parent 459aeb6fee
commit 5836e449fd

View file

@ -154,8 +154,6 @@ class ActiveRecord::Base
# * failed_instances - an array of objects that fails validation and were not committed to the database. An empty array if no validation is performed. # * failed_instances - an array of objects that fails validation and were not committed to the database. An empty array if no validation is performed.
# * num_inserts - the number of insert statements it took to import the data # * num_inserts - the number of insert statements it took to import the data
def import( *args ) def import( *args )
@logger = Logger.new(STDOUT)
@logger.level = Logger::DEBUG
options = { :validate=>true, :timestamps=>true } options = { :validate=>true, :timestamps=>true }
options.merge!( args.pop ) if args.last.is_a? Hash options.merge!( args.pop ) if args.last.is_a? Hash