SAN JOSE, Calif. (KRON/AP)- San Jose officials have passed a new gun law that requires retailers to video-record all firearm purchases.

That makes San Jose the largest city in California with such a rule.

City Council on Tuesday unanimously approved the law less than a month after a disgruntled employee fatally shot 9 of his co-workers and then himself at the VTA rail yard in San Jose.

The new ordinance is aimed at deterring an illegal practice known as straw purchasing.

That happens when someone buys a gun for another person such as a felon or minor who is prohibited from owning firearms.