Added missing brackets to Ruby block