Is there a way to use traits in trait like in factory_bot?
Here is an example :
class ListCloner < Clowne::Cloner
trait :with_items do
include_association :items
end
trait :special_list do
with_items
finalize do |_source, record, **_params|
# Do some stuff...
end
end
end
Hello there! 👋
Is there a way to use traits in trait like in factory_bot?
Here is an example :
Thanks for your work! ❤️