A system for mounting an object on a structure includes a pivoting mounting bracket portion and a rail portion. The mounting bracket portion includes a front plate that is pivotally coupled to a back plate. The rail portion is shaped in the form a C-channel. The back plate is sized and shaped to snugly fit within the C-channel of the rail portion. The rail portion is configured to be attached to the structure, and the front plate is configured to be attached to the object.