It was part of the show, not a real injury.
In the episode "That's What You Get, Part 2," Rory's arm is broken by a runaway shopping cart.
While Bledel was skilled at acting, she didn't actually break her arm for the show. The injury was achieved using special effects and makeup techniques to create the illusion of a break.