mirror of https://github.com/rails/rails
Use public_send instead of send in ActiveModel::Model initialize
This commit is contained in:
parent
aacd41d250
commit
247706e259
|
@ -65,7 +65,7 @@ module ActiveModel
|
|||
|
||||
def initialize(params={})
|
||||
params.each do |attr, value|
|
||||
self.send("#{attr}=", value)
|
||||
self.public_send("#{attr}=", value)
|
||||
end if params
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue