Fix compatibility with old ActiveRecord versions
Merge pull request #15 from ninech/fix-activerecord-compatibility

Fix compatibility with old ActiveRecord versions