Fix rubocop nits
This commit is contained in:
parent
05634ae69d
commit
5a17466999
|
@ -149,7 +149,7 @@ class User < ApplicationRecord
|
||||||
|
|
||||||
# region stuff used for reporting/moderation
|
# region stuff used for reporting/moderation
|
||||||
def report(object, reason = nil)
|
def report(object, reason = nil)
|
||||||
target_user = if object.class.to_s == "User"
|
target_user = if object.instance_of?(::User)
|
||||||
object
|
object
|
||||||
elsif object.respond_to? :user
|
elsif object.respond_to? :user
|
||||||
object.user
|
object.user
|
||||||
|
|
Loading…
Reference in New Issue