Skip to content

Commit

Permalink
Allow updating profile without ordergroup
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Jan 16, 2015
1 parent 987f14c commit 65c7673
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ def user_params
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

0 comments on commit 65c7673

Please sign in to comment.