There is disclosed a device and method for stabilizing a bone. The device includes a polymer with a glass transition temperature. The polymer is relatively deformable at a temperature above the glass transition temperature and relatively rigid at a temperature below the glass transition temperature. The device, while the polymer is above the glass transition temperature, is responsive to a bending force to bend during insertion into the intramedullary canal of the bone. The device, while the polymer is below the glass transition temperature, is relatively rigid and able to provide reinforcement to the bone.