Allow updating profile without ordergroup

This commit is contained in:
wvengen 2015-01-16 20:25:58 +01:00
parent 987f14c226
commit 65c7673a41

View file

@ -72,10 +72,9 @@ class HomeController < ApplicationController
end
def ordergroup_params
params
.require(:user)
.require(:ordergroup)
.permit(:contact_address)
if params[:user][:ordergroup]
params.require(:user).require(:ordergroup).permit(:contact_address)
end
end
end