theforeman/foreman — pull request #1238 by eLobato (2014-02-13 23:19:10+00:00)
Title: Bug #3001 - Facts searchable by host id and name

Before, an api call such as foreman/api/v2/host/3232/facts would simply
return no facts, as the ```id``` field was only searching for a host
name.

This PR fixes that and now the intermediate ```host_id``` field
allows to search by name and id by giving the SQL conditions directly to
scoped_search.