diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-06-07 03:45:50 -0700 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-06-07 03:45:50 -0700 |
commit | 68598df25ac92038648dccd01b1e4ed534dfc2a2 (patch) | |
tree | e8683440885450ec754e909274f1688bb1ffdb3e /activemodel/lib/active_model | |
parent | a68c6cccf05310546e82c4c81fe70818a454bf4e (diff) | |
parent | 9906eb135575ea6dd154257b8c977321c4b1adb2 (diff) | |
download | rails-68598df25ac92038648dccd01b1e4ed534dfc2a2.tar.gz rails-68598df25ac92038648dccd01b1e4ed534dfc2a2.tar.bz2 rails-68598df25ac92038648dccd01b1e4ed534dfc2a2.zip |
Merge pull request #10874 from rlivsey/patch-1
Docfix: Use public interface instead of setting instance variables
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/serializers/json.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/serializers/json.rb b/activemodel/lib/active_model/serializers/json.rb index 9d984b7a18..05e2e089e5 100644 --- a/activemodel/lib/active_model/serializers/json.rb +++ b/activemodel/lib/active_model/serializers/json.rb @@ -109,7 +109,7 @@ module ActiveModel # # def attributes=(hash) # hash.each do |key, value| - # instance_variable_set("@#{key}", value) + # send("#{key}=", value) # end # end # |