Permit specific params in enterprise_groups controller

This commit is contained in:
Luis Ramos
2020-02-25 18:13:40 +00:00
parent 5c179a0932
commit 29a457575b

View File

@@ -55,5 +55,13 @@ module Admin
def collection
EnterpriseGroup.by_position
end
def permitted_resource_params
params.require(:enterprise_group).permit(
:name, :description, :long_description, :on_front_page, :owner_id, :permalink,
:email, :website, :facebook, :instagram, :linkedin, :twitter,
enterprise_ids: [], address_attributes: permitted_address_attributes
)
end
end
end