Allow updating profile without ordergroup
This commit is contained in:
parent
987f14c226
commit
65c7673a41
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue