[OPF#1214] Feature/rails3 fix pagination