mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
@ -351,7 +351,7 @@ class User < ActiveRecord::Base
|
||||
|
||||
def self.unstage(params)
|
||||
if user = User.where(staged: true).with_email(params[:email].strip.downcase).first
|
||||
params.each { |k, v| user.send("#{k}=", v) }
|
||||
params.each { |k, v| user.public_send("#{k}=", v) }
|
||||
user.active = false
|
||||
user.unstage
|
||||
end
|
||||
|
Reference in New Issue
Block a user