Skip to content

Commit

Permalink
Revert instance @recipient removal from excid3#126
Browse files Browse the repository at this point in the history
  • Loading branch information
clinejj authored Nov 18, 2021
1 parent e31f614 commit 2c196f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/noticed/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def params
# Runs all delivery methods for a notification
def run_delivery(recipient, enqueue: true)
delivery_methods = self.class.delivery_methods.dup

@recipient = recipient

# Run database delivery inline first if it exists so other methods have access to the record
if (index = delivery_methods.find_index { |m| m[:name] == :database })
Expand Down

0 comments on commit 2c196f8

Please sign in to comment.