Fix broken ruby block syntax