Module: CurationConcern::WorkPermissionActionParser
- Defined in:
- app/services/curation_concern/work_permission_action_parser.rb
Overview
This module is used to take a params hash from the Work edit form (it uses nested attributes) and decide what action needs to happen for each editor listed in the Work. The possibilities are: none, create, destroy
Class Method Summary collapse
Class Method Details
.convert_params(class_name, params) ⇒ Object
7 8 9 10 11 12 |
# File 'app/services/curation_concern/work_permission_action_parser.rb', line 7 def self.convert_params( class_name, params ) action = self.decide_editorship_action( class_name, params ) self.build_params( class_name, params, action ) end |