Skip to content
  • Jon Leighton's avatar
    50d395f9
    Raise error when using write_attribute with a non-existent attribute. · 50d395f9
    Jon Leighton authored
    Previously we would just silently write the attribute. This can lead to
    subtle bugs (for example, see the change in AutosaveAssociation where a
    through association would wrongly gain an attribute.
    
    Also, ensuring that we never gain any new attributes after
    initialization will allow me to reduce our dependence on method_missing.
    50d395f9
    Raise error when using write_attribute with a non-existent attribute.
    Jon Leighton authored
    Previously we would just silently write the attribute. This can lead to
    subtle bugs (for example, see the change in AutosaveAssociation where a
    through association would wrongly gain an attribute.
    
    Also, ensuring that we never gain any new attributes after
    initialization will allow me to reduce our dependence on method_missing.
Loading