Module: Hydramata::GroupMembershipActionParser
- Included in:
- GroupsController
- Defined in:
- app/services/hydramata/group_membership_action_parser.rb
Overview
This module is used to take a params hash from the Group edit form (it uses nested attributes) and decide what action needs to happen for each member listed in the Group. The possibilities are: none, create, destroy
Class Method Summary collapse
Class Method Details
.convert_params(params, current_user) ⇒ Object
7 8 9 10 11 12 |
# File 'app/services/hydramata/group_membership_action_parser.rb', line 7 def self.convert_params(params, current_user) action = self.decide_membership_action(params) self.build_params(params, action, current_user) end |