NEW YORK (AP modified) — Gov. Andrew Cuomo signed a new liquor bill into law that will allow people to order alcoholic drinks on Sunday mornings to cap their brunch.

The old blue law — a remnant of the Prohibition era — banned restaurants and bars from serving alcohol before noon. But some had long been flouting the law at the risk of being shut down.

This year, state legislators voted in favor of a looser law that allows alcohol to be served Sundays starting at 10 a.m.

The bill’s main political backer was Gov. Cuomo, who says the extra morning drinking hours will boost alcohol sales.

The Democrat signed the legislation after the state Senate and Assembly approved it.

It will be effective in two months.