enabeled sunspot task when running with Rails 4

sunspot_solr can't run with Rails 4. fixed Railtie detect condition.