diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-13 01:48:27 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-13 02:22:31 +0300 |
commit | 803294034cc89ccee8ad0ed4401b47b344d29afe (patch) | |
tree | 34fc4bd17a7194fa375e381a77510a26b58c40d1 | |
parent | 6e7b53c3b5ade8bc54ef9691c4691d2f189da7c1 (diff) | |
download | rails-803294034cc89ccee8ad0ed4401b47b344d29afe.tar.gz rails-803294034cc89ccee8ad0ed4401b47b344d29afe.tar.bz2 rails-803294034cc89ccee8ad0ed4401b47b344d29afe.zip |
Add more detailed comment about _assign_attribute method [ci skip]
fix minor problems
-rw-r--r-- | activerecord/lib/active_record/attribute_assignment.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index cc265e2af6..45fdcaa1cd 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -29,7 +29,8 @@ module ActiveRecord assign_multiparameter_attributes(multi_parameter_attributes) unless multi_parameter_attributes.empty? end - # Re-raise with the ActiveRecord constant in case of an error + # Tries to assign given value to given attribute. + # In case of an error, re-raises with the ActiveRecord constant. def _assign_attribute(k, v) # :nodoc: super rescue ActiveModel::UnknownAttributeError |