mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
@ -157,7 +157,7 @@ class Admin::ThemesController < Admin::AdminController
|
||||
|
||||
[:name, :color_scheme_id, :user_selectable].each do |field|
|
||||
if theme_params.key?(field)
|
||||
@theme.send("#{field}=", theme_params[field])
|
||||
@theme.public_send("#{field}=", theme_params[field])
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user