method

_assign_attribute

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: AttributeAssignment
_assign_attribute(k, v) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute_assignment.rb, line 46
      def _assign_attribute(k, v)
        setter = :"#{k}="
        if respond_to?(setter)
          public_send(setter, v)
        else
          raise UnknownAttributeError.new(self, k.to_s)
        end
      end
Register or log in to add new notes.