Fix compatibility with ActiveRecord 3.2.12
Merge pull request #5 from mlomnicki/ar-3.2.12-compatibility

Fix compatibility with ActiveRecord 3.2.12