Skip to content

Commit f5cbb26

Browse files
committed
>.< Keys are symbols, keys are strings, which one in prod? I hate these things.
1 parent 38a164b commit f5cbb26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/jobs/analyze_spam.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ def perform
77

88
ap(spammable) unless Rails.env.test?
99

10+
spammable.symbolize_keys!
11+
1012
thing_to_analyze = spammable[:klass].constantize.find(spammable[:id])
1113

1214
ap(thing_to_analyze) unless Rails.env.test?

0 commit comments

Comments
 (0)