Skip to content

Commit

Permalink
Use User.batch_user instead of the deprecated batchuser
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed May 20, 2016
1 parent 455b849 commit 5dcbb9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/importer/attach_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/importer/factory/object_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5dcbb9b

Please sign in to comment.