Code update for padrino 0.11