Rails42 compatibility