method
_assign_attribute

Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: AttributeAssignment
_assign_attribute(k, v)
private
Hide source
# File activerecord/lib/active_record/attribute_assignment.rb, line 53 def _assign_attribute(k, v) public_send("#{k}=", v) rescue NoMethodError, NameError if respond_to?("#{k}=") raise else raise UnknownAttributeError.new(self, k) end end