CurrentUser: remove #as method.

Replace with CurrentUser#scoped.
This commit is contained in:
evazion
2021-06-22 23:39:30 -05:00
parent 7f0edc32dd
commit e5cfb7904c
11 changed files with 12 additions and 22 deletions

View File

@@ -54,8 +54,8 @@ class UploadService
predecessor.present?
end
def delayed_start(uploader_id)
CurrentUser.as(uploader_id) do
def delayed_start(uploader)
CurrentUser.scoped(uploader) do
start!
end
rescue ActiveRecord::RecordNotUnique