Skip to content

Commit

Permalink
Merge pull request sunspot#380 from hsbt/enabled-rails4
Browse files Browse the repository at this point in the history
Feature detecting rake task support instead of using version string. Enables sunspot task when running with Rails 4.
  • Loading branch information
njakobsen committed Apr 26, 2013
2 parents 96b6815 + 7ecfc66 commit 701af45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunspot_solr/lib/sunspot_solr.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'sunspot/solr/server'

if defined?(Rails) && Rails::VERSION::MAJOR == 3
if defined?(Rails::Railtie)
require 'sunspot/solr/railtie'
end

0 comments on commit 701af45

Please sign in to comment.