Class: Hyrax::GrantReadJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- ApplicationJob
- Hyrax::GrantReadJob
- Defined in:
- app/jobs/hyrax/grant_read_job.rb
Overview
Grants the user’s read access on the provided FileSet
Instance Method Summary collapse
Instance Method Details
#perform(file_set_id, user_key) ⇒ Object
8 9 10 11 12 |
# File 'app/jobs/hyrax/grant_read_job.rb', line 8 def perform(file_set_id, user_key) file_set = ::FileSet.find(file_set_id) file_set.read_users += [user_key] file_set.save! end |