Sha256: 9441fad9027fe7df55934db2b7a7884fa57798903166a4a9de62078e66c9102c

Contents?: true

Size: 450 Bytes

Versions: 13

Compression:

Stored size: 450 Bytes

Contents

require 'sunspot'

Sunspot.session = Sunspot::Rails.build_session
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

13 entries across 13 versions & 3 rubygems

Version Path
ruben_sunspot_rails-1.1.4 rails/init.rb
ruben_sunspot_rails-1.1.3 rails/init.rb
ruben_sunspot_rails-1.1.2 rails/init.rb
ruben_sunspot_rails-1.1.1 rails/init.rb
ruben_sunspot_rails-1.1.0 rails/init.rb
nuatt_sunspot_rails-1.1.0.3 rails/init.rb
sunspot_rails-1.1.0 rails/init.rb
sunspot_rails-1.0.5 rails/init.rb
sunspot_rails-1.0.4 rails/init.rb
sunspot_rails-1.0.3 rails/init.rb
sunspot_rails-1.0.2 rails/init.rb
sunspot_rails-1.0.1 rails/init.rb
sunspot_rails-1.0.0 rails/init.rb