mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:09:53 +01:00
Fix rubocop nits
This commit is contained in:
parent
05634ae69d
commit
5a17466999
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class User < ApplicationRecord
|
|||
|
||||
# region stuff used for reporting/moderation
|
||||
def report(object, reason = nil)
|
||||
target_user = if object.class.to_s == "User"
|
||||
target_user = if object.instance_of?(::User)
|
||||
object
|
||||
elsif object.respond_to? :user
|
||||
object.user
|
||||
|
|
Loading…
Reference in a new issue