Support ActiveRecord 3.2 through 4.0