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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue