We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0448e84 commit 21d0c8dCopy full SHA for 21d0c8d
app/jobs/analyze_spam.rb
@@ -6,7 +6,9 @@ class AnalyzeSpam < Struct.new(:spammable)
6
def perform
7
ap spammable
8
9
- thing_to_analyze = spammable['commentable_type'].constantize.find_by_id(spammable['id'])
+ thing_to_analyze = spammable['commentable_type'].constantize.find_by_id(spammable['commentable_id'])
10
+
11
+ ap thing_to_analyze
12
13
if thing_to_analyze.spam?
14
thing_to_analyze.create_spam_report
0 commit comments