This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integer :category_ids, :multiple => true do | |
cached_displayable_categories.map{ |category| category.id } unless cached_displayable_categories.empty? | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
searchable do | |
text :name | |
string :name | |
string :phone | |
integer :review_count do | |
reviews.size | |
end | |
integer :stars | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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/" |
NewerOlder