Updated gems and upgraded Rails to 4.1.5. And everything works. Miracle.