Mid-Level
October 4, 2026Spot the bug: Ruby on Rails
One snippet. Find the bug, or prove there isn't one.
ruby
1class NewsletterJob
2 def self.perform
3 User.where(subscribed: true).find_each(batch_size: 500) do |user|
4 UserMailer.weekly_digest(user).deliver_later
5 end
6 end
7endClick the lines that carry the problem.
Your verdict
One attempt per day. The answer shows up right after.
Keep your streak
Create an account to keep your streak and track your progress.