Work with ActiveRecord 4

Not tested with AR 3, but I believe that it is no longer compatible. It may be possible to support both AR 3 and 4 because only additions were made.