restore constraints when controller is not nested, needed for self-associations
restore constraints when controller is not nested, needed for self-associations

mallikarjunayaddala/active_scaffold,AlbertoBarrago/active_scaffold,budree/active_scaffold,activescaffold/active_scaffold,budree/active_scaffold,AlbertoBarrago/active_scaffold,budree/active_scaffold,mallikarjunayaddala/active_scaffold,activescaffold/active_scaffold,AlbertoBarrago/active_scaffold,activescaffold/active_scaffold,mallikarjunayaddala/active_scaffold