thoughtbot/factory_girl — pull request #481 by DeTeam (2013-02-02 15:35:11+00:00)
Title: Custom global callbacks

There's a nice possibility to add custom callbacks for several factories, but there's none for global scope.

I'd really like to do such things:

```ruby
FactoryGirl.define do
after :build do |obj|
some_common_logic_based_on_condition_for obj
end
end
```

If it's okay, I could even try to implement that by my own.