Sha256: d16d3fd772ad34384eb93b347ca2ed26249469706be433702474af22385c0488

Contents?: true

Size: 459 Bytes

Versions: 7

Compression:

Stored size: 459 Bytes

Contents

require 'sunspot'

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

7 entries across 7 versions & 2 rubygems

Version Path
sunspot_rails-0.11.5 rails/init.rb
sunspot_rails-0.11.4 rails/init.rb
nxa-sunspot_rails-0.11.3 rails/init.rb
sunspot_rails-0.11.3 rails/init.rb
sunspot_rails-0.11.2 rails/init.rb
sunspot_rails-0.11.1 rails/init.rb
sunspot_rails-0.11.0 rails/init.rb