Permalink
Browse files

Merge pull request #5258 from guilleiguaran/amo-model

Use public_send instead of send in ActiveModel::Model initialize
  • Loading branch information...
2 parents aacd41d + 247706e commit 9975d533059b125bd00ce34c8f4961a4dd6404b5 @jonleighton jonleighton committed Mar 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 9975d53

Please sign in to comment.