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 end
def ordergroup_params def ordergroup_params
params if params[:user][:ordergroup]
.require(:user) params.require(:user).require(:ordergroup).permit(:contact_address)
.require(:ordergroup) end
.permit(:contact_address)
end end
end end