You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Thanks for your work! ❤️
The text was updated successfully, but these errors were encountered:
Hello there! 👋
Is there a way to use traits in trait like in factory_bot?
Here is an example :
Thanks for your work! ❤️
The text was updated successfully, but these errors were encountered: