Add support for ActiveRecord.

Josep,

This pull request passes all rspec and cucumber tests. If you create an active_record branch, I can regenerate the request after that.

Thanks for you work on this!

Joe