make sunspot rails 4 compatible