if target.last_sent_at && target.last_sent_at >= Time.now - 23.hours && !ignore_rules
next
end
if target.last_sent_at && target.last_sent_at >= Time.now - 23.hours
next unless ignore_rules
end
...
next unless should_deliver? || ignore_rules
...
def should_deliver?
target.last_sent_at && target.last_sent_at >= Time.now - 23.hours
end