1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add more detailed comment about _assign_attribute method [ci skip]

fix minor problems
This commit is contained in:
Mehmet Emin İNAÇ 2015-05-13 01:48:27 +03:00
parent 6e7b53c3b5
commit 803294034c

View file

@ -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