mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
@ -16,7 +16,7 @@ class Admin::EmbeddingController < Admin::AdminController
|
||||
end
|
||||
|
||||
Embedding.settings.each do |s|
|
||||
@embedding.send("#{s}=", params[:embedding][s])
|
||||
@embedding.public_send("#{s}=", params[:embedding][s])
|
||||
end
|
||||
|
||||
if @embedding.save
|
||||
|
Reference in New Issue
Block a user