Skip to content

Instantly share code, notes, and snippets.

integer :category_ids, :multiple => true do
cached_displayable_categories.map{ |category| category.id } unless cached_displayable_categories.empty?
end
From da3be5e481fb902b15cf5d349391bae3c75f2b7e Mon Sep 17 00:00:00 2001
From: Ben Yee <[email protected]>
Date: Wed, 19 Aug 2009 10:25:42 -0700
Subject: [PATCH] add localsolr libs and bump version
---
VERSION.yml | 4 +-
sunspot.gemspec | 115 +++++++++++++++++++++++++++++++++++++++++-----------
tasks/gemspec.rake | 2 +-
3 files changed, 94 insertions(+), 27 deletions(-)
searchable do
text :name
string :name
string :phone
integer :review_count do
reviews.size
end
integer :stars
end
#
# Usage: %> rails <projectname> -m http://gist.github.com/130543.txt
#
# Install gems
gem 'will_paginate', :source => "http://gemcutter.org/"
gem "factory_girl", :source => "http://gemcutter.org/"
gem "formtastic", :source => "http://gemcutter.org/"
gem "authlogic", :source => "http://gemcutter.org/"
gem "rspec", :source => "http://gemcutter.org/"