lib/sunspot_solr.rb in sunspot_solr-2.0.0 vs lib/sunspot_solr.rb in sunspot_solr-2.1.0
- old
+ new
@@ -1,5 +1,5 @@
require 'sunspot/solr/server'
-if defined?(Rails) && Rails::VERSION::MAJOR == 3
+if defined?(Rails::Railtie)
require 'sunspot/solr/railtie'
end