Skip to content
Permalink
Browse files

Saving Roles

  • Loading branch information...
dnsbty committed Aug 18, 2019
1 parent 6dcc376 commit fef2f39c6e55b64463dc55978056d9c607e2f6b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/user_admin/users/user.ex
@@ -11,7 +11,7 @@ defmodule UserAdmin.Users.User do

def changeset(user, changes \\ %{}) do
user
|> cast(changes, [:name])
|> validate_required([:name])
|> cast(changes, [:name, :role_id])
|> validate_required([:name, :role_id])
end
end

0 comments on commit fef2f39

Please sign in to comment.
You can’t perform that action at this time.