Fix Style/ClassEqualityComparison
cop (#30058)
This commit is contained in:
parent
72484a194f
commit
348ccf206e
3 changed files with 2 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
class ActivityPub::OutboxSerializer < ActivityPub::CollectionSerializer
|
||||
def self.serializer_for(model, options)
|
||||
if model.class.name == 'ActivityPub::ActivityPresenter'
|
||||
if model.instance_of?(::ActivityPub::ActivityPresenter)
|
||||
ActivityPub::ActivitySerializer
|
||||
else
|
||||
super
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue