Skip to content
Browse files

Use public_send instead of send in ActiveModel::Model initialize

  • Loading branch information...
1 parent aacd41d commit 247706e259f01025a692c35e984ad16ccc7fc987 @guilleiguaran committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/model.rb
View
2 activemodel/lib/active_model/model.rb
@@ -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

0 comments on commit 247706e

Please sign in to comment.
Something went wrong with that request. Please try again.