moiristo / deep_cloneable

This gem gives every ActiveRecord::Base object the possibility to do a deep clone that includes user specified associations.
MIT License
785 stars 89 forks source link

Set association to nil, not false when using unless conditional #107

Closed nherzing closed 5 years ago

nherzing commented 5 years ago

Currently when using unless, if the expression evaluates to false, that value will get set to the association. The correct behavior would be to set the association to nil.

moiristo commented 5 years ago

Indeed, thanks!