Update for activerecord 4.
Merge pull request #6 from pathable/activerecord-4

Activerecord 4