mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:57:40 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
@ -95,7 +95,7 @@ class Plugin::Metadata
|
||||
attribute = attribute.strip.gsub(/ /, '_').to_sym
|
||||
|
||||
if FIELDS.include?(attribute)
|
||||
self.send("#{attribute}=", description.strip)
|
||||
self.public_send("#{attribute}=", description.strip)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user