Skip to content

Commit

Permalink
Need to include a token for testers
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Aug 24, 2013
1 parent 8466fcf commit f673b9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/broadcaster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ def self.notify_subscribers(params)
end

def self.notify_testers(params)
subscriber = Struct.new(:contact_email)
subscriber = Struct.new(:contact_email, :share_token)
.new(params[:to], "testtoken")

BroadcastMailer.broadcast(params, subscriber.new(params[:to])).deliver
BroadcastMailer.broadcast(params, subscriber).deliver
end
end

0 comments on commit f673b9f

Please sign in to comment.