thoughtbot/factory_girl — pull request #386 by ineu (2012-05-22 19:55:20+00:00)
Title: Allow to use AR class names as arguments to create, build etc

According to discussion in https://github.com/thoughtbot/factory_girl/commit/c006dd186ff71356217de40a9f146ae35e340e78#commitcomment-1320334
As Object.make syntax is deprecated now, we need a way to pass classes to build/create methods. Currently you have to do
```ruby
my_class = BookAuthor
create my_class.to_s.underscore
```
This commit allows to do
```ruby
my_class = BookAuthor
create my_class
```
I never looked into FG internals, so please let me know if this patch should be modified or rewritten.