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

Include all associations without having to specify all of them? #131

Closed Abdelrahman-Atia closed 3 years ago

Abdelrahman-Atia commented 3 years ago

If I have a modal with 40 associations, is there is a way to include them without having to write all of them in the include block??

moiristo commented 3 years ago

deep_cloneable is meant to be simple. You can build the include hash anyway you like of course. For more complex cases (like yours), I'd suggest using amoeba instead.