Sha256: 6769ae7016d2dd55764dd0d374e1ab05434da3517118641d41cb2d6f4b43b936
Contents?: true
Size: 645 Bytes
Versions: 5
Compression:
Stored size: 645 Bytes
Contents
require 'sunspot' Sunspot.config.solr.url = URI::HTTP.build(:host => Sunspot::Rails.configuration.hostname, :port => Sunspot::Rails.configuration.port, :path => '/solr').to_s Sunspot::Adapters::InstanceAdapter.register(Sunspot::Rails::Adapters::ActiveRecordInstanceAdapter, ActiveRecord::Base) Sunspot::Adapters::DataAccessor.register(Sunspot::Rails::Adapters::ActiveRecordDataAccessor, ActiveRecord::Base) ActiveRecord::Base.module_eval { include(Sunspot::Rails::Searchable) } ActionController::Base.module_eval { include(Sunspot::Rails::RequestLifecycle) }
Version data entries
5 entries across 5 versions & 1 rubygems