Permalink
Browse files

Minor refactoring: renamed variable to be more meaningful. ('line' =>…

… 'email')
  • Loading branch information...
1 parent 3f62c36 commit 6a70da650c90e45901f34e6831668c5df1772242 Mark Steckel committed Sep 20, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/workers/unsubscribes_worker.rb
@@ -1,13 +1,13 @@
class UnsubscribesWorker
include Sidekiq::Worker
- def perform(line, batch_key)
+ def perform(email, batch_key)
REDIS.incr "#{batch_key}.seen_lines"
- member = Member.lookup(line).first
+ member = Member.lookup(email).first
if member
REDIS.incr "#{batch_key}.members"
- u = Unsubscribe.new(email: line, member: member, cause: 'uploaded')
+ u = Unsubscribe.new(email: email, member: member, cause: 'uploaded')
REDIS.incr "#{batch_key}.unsubscribes" if u.save
end
end

0 comments on commit 6a70da6

Please sign in to comment.