fixed issue with rendering Hash which appears in rails 4.2.0.beta4