tentative rails 4 compatibility fix