We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1148c4 commit 91547b8Copy full SHA for 91547b8
CHANGELOG.md
@@ -1,5 +1,7 @@
1
### Unreleased
2
3
+* Use `public_send` for Email delivery so it doesn't accidentally call private methods.
4
+
5
### 2.3.2
6
7
* Set `:json` type on `:params` column with default to better integrate with ActiveRecord.
lib/noticed/delivery_methods/email.rb
@@ -7,7 +7,7 @@ def deliver
mailer = fetch_constant(:mailer)
8
email = evaluate_option(:method)
9
args = evaluate_option(:args) || []
10
- mail = mailer.with(params).send(email, *args)
+ mail = mailer.with(params).public_send(email, *args)
11
(!!evaluate_option(:enqueue)) ? mail.deliver_later : mail.deliver_now
12
end
13
0 commit comments