Skip to content

Commit

Permalink
Ephemeral notification_methods should be on the class
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Feb 14, 2024
1 parent 8c539c7 commit 4640ddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/noticed/ephemeral.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def self.inherited(notifier)
notifier.const_set :Notification, Class.new(Noticed::Ephemeral::Notification)
end

def self.notification_methods(&block)
const_get(:Notification).class_eval(&block)
end

def deliver(recipients)
recipients = Array.wrap(recipients)
bulk_delivery_methods.each do |_, deliver_by|
Expand All @@ -45,9 +49,5 @@ def deliver(recipients)
def record
params[:record]
end

def notification_methods(&block)
const_get(:Notification).class_eval(&block)
end
end
end

0 comments on commit 4640ddf

Please sign in to comment.