hacking for rails 4