Adapted relationship#edit to support scopes.