Skip to content

Commit

Permalink
Add more detailed comment about _assign_attribute method [ci skip]
Browse files Browse the repository at this point in the history
fix minor problems
  • Loading branch information
meinac committed May 12, 2015
1 parent 6e7b53c commit 8032940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/attribute_assignment.rb
Expand Up @@ -29,7 +29,8 @@ def _assign_attributes(attributes) # :nodoc:
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
Expand Down

0 comments on commit 8032940

Please sign in to comment.