Note that rails 4.0 is tested in the sunspot_rails readme.