With rails 5.2, where clauses will no longer cast Class objects as Strings. We need to explicitly pass String objects.
With rails 5.2, where clauses will no longer cast Class objects as Strings.
We need to explicitly pass String objects.

Similar to https://github.com/ManageIQ/manageiq/pull/19016

Fixes errors of this variety on rails 5.2 (in a rails 5.1 backward compatible
way):

```
irb(main):001:0> MiqReportResult.with_chargeback
The version of PostgreSQL being connected to is incompatible with ManageIQ (10 required)
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
Traceback (most recent call last):
       16: from activerecord (5.2.4.2) lib/active_record/relation.rb:584:in `skip_query_cache_if_necessary
       ...
        1: from activerecord (5.2.4.2) lib/active_record/connection_adapters/abstract/quoting.rb:34:in `rescue in type_cast'
TypeError (can't cast Class)
```

NickLaMuro/manageiq,d-m-u/manageiq,lpichler/manageiq,agrare/manageiq,d-m-u/manageiq,billfitzgerald0120/manageiq,hstastna/manageiq,djberg96/manageiq,ManageIQ/manageiq,jrafanie/manageiq,skateman/manageiq,chessbyte/manageiq,ManageIQ/manageiq,ManageIQ/manageiq,jvlcek/manageiq,skateman/manageiq,skateman/manageiq,NickLaMuro/manageiq,NickLaMuro/manageiq,jrafanie/manageiq,jvlcek/manageiq,ManageIQ/manageiq,hstastna/manageiq,jrafanie/manageiq,mzazrivec/manageiq,kbrock/manageiq,d-m-u/manageiq,lpichler/manageiq,agrare/manageiq,kbrock/manageiq,chessbyte/manageiq,gmcculloug/manageiq,gmcculloug/manageiq,mzazrivec/manageiq,billfitzgerald0120/manageiq,billfitzgerald0120/manageiq,hstastna/manageiq,jrafanie/manageiq,jvlcek/manageiq,chessbyte/manageiq,lpichler/manageiq,mzazrivec/manageiq,gmcculloug/manageiq,mzazrivec/manageiq,d-m-u/manageiq,djberg96/manageiq,gmcculloug/manageiq,chessbyte/manageiq,kbrock/manageiq,kbrock/manageiq,skateman/manageiq,jvlcek/manageiq,billfitzgerald0120/manageiq,NickLaMuro/manageiq,agrare/manageiq,agrare/manageiq,lpichler/manageiq,djberg96/manageiq,djberg96/manageiq,hstastna/manageiq