Inject collection_class into resources