Register non ActiveRecord::Base classes correctly. Thanks @mptre.