Added support for ActiveRecord 4.2