Compatible with Rails 4.1.x, but not 4.2.x