Skip to content

Commit

Permalink
Use public_send instead of send in ActiveModel::Model initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleiguaran committed Mar 3, 2012
1 parent aacd41d commit 247706e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/model.rb
Expand Up @@ -65,7 +65,7 @@ def self.included(base)

def initialize(params={})
params.each do |attr, value|
self.send("#{attr}=", value)
self.public_send("#{attr}=", value)
end if params
end

Expand Down

0 comments on commit 247706e

Please sign in to comment.