From 9fadeea3fe4bf59491950e36aeb3dadeeff7ee11 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Mon, 13 Feb 2023 20:14:20 +0100 Subject: [PATCH] rubodog --- app/controllers/inbox_controller.rb | 2 +- lib/use_case/question/create.rb | 4 ++-- lib/use_case/question/create_followers.rb | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/inbox_controller.rb b/app/controllers/inbox_controller.rb index 16c47099..f6a1aff2 100644 --- a/app/controllers/inbox_controller.rb +++ b/app/controllers/inbox_controller.rb @@ -5,7 +5,7 @@ class InboxController < ApplicationController after_action :mark_inbox_entries_as_read, only: %i[show] - def show # rubocop:disable Metrics/MethodLength, Metrics/AbcSize + def show # rubocop:disable Metrics/MethodLength find_author find_inbox_entries diff --git a/lib/use_case/question/create.rb b/lib/use_case/question/create.rb index a7c1345d..17987a1d 100644 --- a/lib/use_case/question/create.rb +++ b/lib/use_case/question/create.rb @@ -27,8 +27,8 @@ module UseCase status: 201, resource: question, extra: { - inbox: - } + inbox:, + }, } end diff --git a/lib/use_case/question/create_followers.rb b/lib/use_case/question/create_followers.rb index a6bddb0f..04fe3844 100644 --- a/lib/use_case/question/create_followers.rb +++ b/lib/use_case/question/create_followers.rb @@ -9,9 +9,9 @@ module UseCase def call question = ::Question.create!( - content: content, + content:, author_is_anonymous: false, - author_identifier: author_identifier, + author_identifier:, user: source_user, direct: false ) @@ -23,7 +23,7 @@ module UseCase { status: 201, - resource: question + resource: question, } end