The invention relates to a safety assembly having—;an attachment ring attached to the tip of the container and—;a safety device covering at least the distal end of the needle, the safety device attached to the attachment ring. The attachment ring has an inner ring having an inner face provided with a snap feature, which engages a complementary snap feature on the tip of the container to prevent axial movement of the inner ring with respect to the container. The snap feature moves radially to engage the complementary snap feature on the tip of the container; and an outer ring is fixed on the inner ring, with a sleeve portion surrounding at least a portion of the inner ring to prevent radial movement of the snap feature once the snap feature has engaged the complementary snap feature on the tip of the container.