dirty hack until rails 4.2.x