From 247706e259f01025a692c35e984ad16ccc7fc987 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Sat, 3 Mar 2012 10:36:03 -0500 Subject: [PATCH] Use public_send instead of send in ActiveModel::Model initialize --- activemodel/lib/active_model/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemodel/lib/active_model/model.rb b/activemodel/lib/active_model/model.rb index 811332163bc..8445113b64b 100644 --- a/activemodel/lib/active_model/model.rb +++ b/activemodel/lib/active_model/model.rb @@ -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