mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 20:26:01 +01:00
Fix rubocop nits
This commit is contained in:
parent
9ce68bffb2
commit
8ddfcef259
1 changed files with 4 additions and 4 deletions
|
@ -16,11 +16,11 @@ class ReactionsController < ApplicationController
|
|||
def create
|
||||
params.require :id
|
||||
|
||||
target = target_class.find_by!(id: params[:id])
|
||||
target = target_class.find(params[:id])
|
||||
|
||||
UseCase::Reaction::Create.call(
|
||||
source_user: current_user,
|
||||
target:
|
||||
target:,
|
||||
)
|
||||
|
||||
target.reload
|
||||
|
@ -40,11 +40,11 @@ class ReactionsController < ApplicationController
|
|||
def destroy
|
||||
params.require :id
|
||||
|
||||
target = target_class.find_by!(id: params[:id])
|
||||
target = target_class.find(params[:id])
|
||||
|
||||
UseCase::Reaction::Destroy.call(
|
||||
source_user: current_user,
|
||||
target:
|
||||
target:,
|
||||
)
|
||||
|
||||
target.reload
|
||||
|
|
Loading…
Reference in a new issue