Use public_send instead of send in ActiveModel::Model initialize

This commit is contained in:
Guillermo Iguaran 2012-03-03 10:36:03 -05:00
parent aacd41d250
commit 247706e259
1 changed files with 1 additions and 1 deletions

View File

@ -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