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

Version Path
outoftime-sunspot_rails-0.9.10 rails/init.rb
outoftime-sunspot_rails-0.9.6 rails/init.rb
outoftime-sunspot_rails-0.9.7 rails/init.rb
outoftime-sunspot_rails-0.9.8 rails/init.rb
outoftime-sunspot_rails-0.9.9 rails/init.rb