Commit 1273f92cfa1229c5e87fd415d7e9d478e22a94b9
1 parent
aec8a527
Exists in
master
update scim
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/scim_rails/scim_users_controller.rb
... | ... | @@ -38,7 +38,7 @@ module ScimRails |
38 | 38 | find_by_username[username_key.to_sym] = permitted_user_params[username_key.to_sym].downcase |
39 | 39 | user = @company |
40 | 40 | .public_send(ScimRails.config.scim_users_scope) |
41 | - .find_or_create_by(find_by_username) | |
41 | + .find_or_initialize_by(find_by_username) | |
42 | 42 | user.update!(permitted_user_params) |
43 | 43 | user.reload |
44 | 44 | update_user(user) rescue "" | ... | ... |
lib/scim_rails/version.rb