Sha256: 1ee9664869be4714242bddc8cdd6288a92cc54c8389b4e0e40470022321d092f
Contents?: true
Size: 971 Bytes
Versions: 5
Compression:
Stored size: 971 Bytes
Contents
sunspot_mongoid ==== A Sunspot wrapper for Mongoid. Install ---- gem install sunspot_mongoid Examples ---- class Post include Mongoid::Document field :title include Sunspot::Mongoid searchable do text :title end end For Rails3 ---- ### as gem: add a gem to Gemfile as following, gem 'sunspot_mongoid' create config/initializers/sunspot_mongoid.rb, Sunspot.session = Sunspot::Rails.build_session ActionController::Base.module_eval { include(Sunspot::Rails::RequestLifecycle) } ### as plugin: add gems to Gemfile as following, gem 'sunspot' gem 'sunspot_rails' and install sunspot_mongoid as rails plugin, rails plugin install git://github.com/jugyo/sunspot_mongoid.git Links ---- * [sunspot](http://github.com/outoftime/sunspot) * [sunspot_rails](http://github.com/outoftime/sunspot/tree/master/sunspot_rails/) Copyright ---- Copyright (c) 2010 jugyo. See LICENSE for details.
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
aq1018-sunspot_mongoid-0.5.0 | README.md |
aq1018-sunspot_mongoid-0.4.0 | README.md |
sunspot_mongoid-0.3.2 | README.md |
sunspot_mongoid-0.3.1 | README.md |
sunspot_mongoid-0.3.0 | README.md |