Make it rails 4 compatible.