Is it possible to do something akin to the following?
factory :people do name "John"
after_create { |model| model.run_something_for_everyone
trait :special do
status :special
after_create { |model| model.run_something_only_for_special_people }
end
trait :silly do
status :silly
after_create { |model| model.run_something_only_for_silly_people }
If so, how? Is the above syntax correct? If not, are there alternatives to accomplish the same thing?