diff options
Diffstat (limited to 'activemodel/lib/active_model/model.rb')
-rw-r--r-- | activemodel/lib/active_model/model.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/model.rb b/activemodel/lib/active_model/model.rb index 811332163b..8445113b64 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 |