paulelliott/fabrication — pull request #134 by gmanley (2012-11-16 18:43:23+00:00)
Title: Add support for activerecord 4.

**NOTE:** This is not ready to be pulled in immediately due to the lack of tests. I wanted to get the dialog started, however, since I'm not quite sure how you want to proceed.

The issue is that the current testing setup doesn't allow for easy testing of different versions. For example datamapper & mongoid both require activemodel 3 while activerecord 4 obviously requires the edge version. Side note: All existing specs do pass with the changes I made as well as the activerecord specs when switching the gemspec to version 4.

One possible solution would be to use [Appraisal](https://github.com/thoughtbot/appraisal). This is the current approach used by [factory_girl](https://github.com/thoughtbot/factory_girl/blob/master/Appraisals).

Also I'm not sure if my current approach is preferred. My logic was that there may be further changes down the road where having sperate activerecord modules for the versions would be cleaner.

I realize this isn't priority due to rails 4 being still in fairly early development, however I figured I would get the ball rolling. I also wanted to hold off on any larger changes until a discussion was had on the preferred method.

Thanks!