Well rails is a bad example. You could just start by having your developers send 2 pull requests to libraries used in the features you are making. You don't even need to put a metric on it, but I bet that you are looking into or using libraries that could use improvements that would be noticed.