summaryrefslogtreecommitdiff
path: root/app/controllers/api/user_accounts_controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/user_accounts_controller')
-rw-r--r--app/controllers/api/user_accounts_controller/create_logic.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/controllers/api/user_accounts_controller/create_logic.rb b/app/controllers/api/user_accounts_controller/create_logic.rb
deleted file mode 100644
index 2e686b3..0000000
--- a/app/controllers/api/user_accounts_controller/create_logic.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-# frozen_string_literal: true
-
-module Api
- class UserAccountsController
- # The UserAccountsController CreateLogic class.
- class CreateLogic
- attr_reader :user_account
-
- include TokenGenerationConcern
-
- def initialize(params)
- @params = params
- end
-
- def call
- @user_account = UserAccount.new(@params)
-
- return unless @user_account.save
-
- generate_user_session_key(@user_account)
- generate_token
- end
- end
- end
-end