From 5dcbb9b9cd980143617677e0e91a92ce59ac4a8e Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Fri, 20 May 2016 10:11:04 -0500 Subject: [PATCH] Use User.batch_user instead of the deprecated batchuser --- lib/importer/attach_files.rb | 2 +- lib/importer/factory/object_factory.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/importer/attach_files.rb b/lib/importer/attach_files.rb index b50fbbb59..079004eb6 100644 --- a/lib/importer/attach_files.rb +++ b/lib/importer/attach_files.rb @@ -29,7 +29,7 @@ def create_file(file_name) return end - actor = CurationConcerns::Actors::FileSetActor.new(FileSet.new, User.batchuser) + actor = CurationConcerns::Actors::FileSetActor.new(FileSet.new, User.batch_user) actor.create_metadata(work) actor.create_content(File.new(path)) end diff --git a/lib/importer/factory/object_factory.rb b/lib/importer/factory/object_factory.rb index f5d68d705..47ed13700 100644 --- a/lib/importer/factory/object_factory.rb +++ b/lib/importer/factory/object_factory.rb @@ -90,10 +90,10 @@ def create run_callbacks :create do if klass == Collection @object.attributes = attrs - @object.apply_depositor_metadata(User.batchuser) + @object.apply_depositor_metadata(User.batch_user) @object.save! else - work_actor = CurationConcerns::CurationConcern.actor(@object, User.batchuser) + work_actor = CurationConcerns::CurationConcern.actor(@object, User.batch_user) work_actor.create(attrs) end end