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:
parent
6e7b53c3b5
commit
803294034c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue