From 4a21633a2b3c75ef5d74f3801da8c6276921dcd8 Mon Sep 17 00:00:00 2001 From: Jordan Brough Date: Wed, 23 Mar 2022 04:39:10 -0600 Subject: [PATCH] chore: Use bang version of "find_or_create_by!" in Platform UsersController (#4248) --- app/controllers/platform/api/v1/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/platform/api/v1/users_controller.rb b/app/controllers/platform/api/v1/users_controller.rb index 960dee0e3..bf5b642f8 100644 --- a/app/controllers/platform/api/v1/users_controller.rb +++ b/app/controllers/platform/api/v1/users_controller.rb @@ -9,7 +9,7 @@ class Platform::Api::V1::UsersController < PlatformController @resource = (User.find_by(email: user_params[:email]) || User.new(user_params)) @resource.save! @resource.confirm - @platform_app.platform_app_permissibles.find_or_create_by(permissible: @resource) + @platform_app.platform_app_permissibles.find_or_create_by!(permissible: @resource) end def login