mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
@ -201,7 +201,7 @@ private
|
||||
|
||||
if post_action
|
||||
post_action.recover!
|
||||
action_attrs.each { |attr, val| post_action.send("#{attr}=", val) }
|
||||
action_attrs.each { |attr, val| post_action.public_send("#{attr}=", val) }
|
||||
post_action.save
|
||||
PostActionNotifier.post_action_created(post_action)
|
||||
else
|
||||
|
Reference in New Issue
Block a user