Please sign in to comment.
Pass in the model class rather than engine
In some circumstances engine was Arel::Table.engine which for separate reasons was an ActiveRecord::Model::DeprecationProxy, which caused a deprecation warning. In any case, we want the actual model class here, since we want to use it to infer information about associations.
- Loading branch information...
Showing with 8 additions and 8 deletions.