Fix for Mongoid-only projects

The latest commit breaks Decent Exposure for Mongoid-only projects because ActiveRecord is not defined.