```ruby
model_class = object.class.reflect_on_association(method).klass
```