Active record < 4.1 no support
Merge pull request #2 from rselk/master

changes for AR support