clowne-rb/clowne

Question: Dynamic traits for child cloners

Closed this issue · 0 comments

Thank You!

First and foremost, I want to extend my heartfelt gratitude to the authors and contributors of this fantastic library. Your hard work and dedication are truly appreciated!

Question

I'm experiencing a problem where I have assocciations with join table which I update after both dependent tables are cloned,
but in certain cases I want to exclude this join table accossiaction of being cloned if there is a trait on a main cloner like :without_of_table_that_involded_in_join_table , I haven't found any possibility to make child cloners traits dynamicly set , maybe it would be nice to have same logic as with using Procs in params for traits, something like this traits: Proc.new |params| end

Please let me know if there is any workarounds, thanks.