Patent attributes
A rail system for a firearm is described. In one example, an apparatus includes a barrel nut and a modular rail. The barrel nut is configured to secure a barrel of a firearm and has a non-circular outer surface when taken along an axis that is perpendicular to an axis of the barrel when secured to the firearm. The modular rail has an inner portion having a shape that is complementary to the barrel nut such that the modular rail does not rotate about the axis of the barrel when the inner portion is mated to the outer surface of the barrel nut. The outer surface of the barrel nut may also comprise a cavity and the modular rail may further comprise a rotatable assembly configured to engage the cavity of the barrel nut such that the modular rail does not move along the axis of the barrel.