Add activerecord4 support

Adding support for ActiveRecord 4.  Happy to make any tweaks necessary since I only dug into ActiveRecord 4 as much as I needed to.