Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use public_send instead of send in ActiveModel::Model initialize

  • Loading branch information...
commit 247706e259f01025a692c35e984ad16ccc7fc987 1 parent aacd41d
Guillermo Iguaran guilleiguaran authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/lib/active_model/model.rb
2  activemodel/lib/active_model/model.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.