Fix for rails 4.0.x

This is just a temporal fix, we should find a permanent solution to our problem with this gem