README.md in code_ownership-1.32.17 vs README.md in code_ownership-1.32.18
- old
+ new
@@ -94,10 +94,10 @@
### `for_class`
`CodeOwnership.for_class` can be given a class and will either return `nil`, or a `CodeTeams::Team`.
```ruby
-CodeOwnership.for_class(MyClass.name)
+CodeOwnership.for_class(MyClass)
```
Under the hood, this finds the file where the class is defined and returns the owner of that file.
See `code_ownership_spec.rb` for an example.