Skip to content

Commit

Permalink
save role info
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 21, 2024
1 parent 680a2a3 commit a52890a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/settings/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def get_user
def user_params
params.require(:user).permit(
:email,
:username
:username,
role_ids: []
)
end
end
2 changes: 1 addition & 1 deletion spec/requests/settings/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
expect(response).to be_successful
end
end

describe "PATCH /update", :as_moderator do
let(:user) { create(:user) }

Expand All @@ -53,5 +54,4 @@
end
end
end

end

0 comments on commit a52890a

Please sign in to comment.