Removing unnecessary logger creation.
This commit is contained in:
parent
459aeb6fee
commit
5836e449fd
|
@ -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.
|
||||
# * num_inserts - the number of insert statements it took to import the data
|
||||
def import( *args )
|
||||
@logger = Logger.new(STDOUT)
|
||||
@logger.level = Logger::DEBUG
|
||||
options = { :validate=>true, :timestamps=>true }
|
||||
options.merge!( args.pop ) if args.last.is_a? Hash
|
||||
|
||||
|
|
Loading…
Reference in a new issue