Sha256: 27bf4d4ee5900751cce6f1944731f6e1d21a9d8f79de7d308cc2f8dc9c7e246f
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require 'sunspot' # if you're running as a gem, move this to an initializer Sunspot.config.solr.url = URI::HTTP.build(:host => Sunspot::Rails.configuration.hostname, :port => Sunspot::Rails.configuration.port, :path => Sunspot::Rails.configuration.path).to_s if Sunspot::Rails.configuration.master? Sunspot.config.master_solr.url = URI::HTTP.build(:host => Sunspot::Rails.configuration.master_hostname, :port => Sunspot::Rails.configuration.master_port, :path => Sunspot::Rails.configuration.master_path).to_s end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuahyeow-sunspot_rails-0.10.7 | rails/init.rb |
kuahyeow-sunspot_rails-0.10.6 | rails/init.rb |