Support for ActiveRecord 4.1