diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-03 20:34:06 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-03 20:34:06 -0600 |
commit | 41a17f47ae275f8e84de03115e142cc23526bacc (patch) | |
tree | 2fb62f78685698a7c55bf5cff8456d24b7a78361 /app/controllers/api/user_accounts_controller | |
parent | 094ee717f710ea4cf81d221c5bf9660b805da9b1 (diff) |
Añade refactorizaciones
Diffstat (limited to 'app/controllers/api/user_accounts_controller')
-rw-r--r-- | app/controllers/api/user_accounts_controller/create_logic.rb | 25 |
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 |