mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
@ -107,8 +107,9 @@ module Email
|
||||
|
||||
styled = Email::Styles.new(html_override, @opts)
|
||||
styled.format_basic
|
||||
|
||||
if style = @opts[:style]
|
||||
styled.send("format_#{style}")
|
||||
styled.public_send("format_#{style}")
|
||||
end
|
||||
|
||||
Mail::Part.new do
|
||||
|
Reference in New Issue
Block a user