Method: Hyrax::BatchEditsController#update_document
- Defined in:
- app/controllers/hyrax/batch_edits_controller.rb
#update_document(obj) ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'app/controllers/hyrax/batch_edits_controller.rb', line 52 def update_document(obj) interpret_visiblity_params(obj) obj.attributes = work_params(admin_set_id: obj.admin_set_id).except(*visibility_params) obj.date_modified = TimeService.time_in_utc InheritPermissionsJob.perform_now(obj) VisibilityCopyJob.perform_now(obj) obj.save end |