refactor groups controller to match EE

This commit is contained in:
James Lopez 2018-01-31 16:23:15 +01:00
parent a0fc0fcc53
commit 406e10b89c
No known key found for this signature in database
GPG key ID: 756BF8E9D7C0CF39

View file

@ -118,10 +118,10 @@ class GroupsController < Groups::ApplicationController
end
def group_params
params.require(:group).permit(group_params_ce)
params.require(:group).permit(group_params_attributes)
end
def group_params_ce
def group_params_attributes
[
:avatar,
:description,