theforeman/foreman — pull request #827 by GregSutcliffe (2013-08-01 09:55:19+00:00)
Title: Fixes #2501 - Allow my_hosts scope to include all subclasses of Host::Base

This change is because on save, the object in the DB is a Host::Discovered, but in memory it's a Host::Managed, meaning that `my_hosts.include? self` will never return true (as `==` in AR checks the model first)