sunspot
https://github.com/sunspot/sunspot
JavaScript
Solr-powered search for Ruby objects
Sunspot::DSL::Scope#field_list
Build a restriction to return only fields of the type in the results.
Edit
git clone [email protected]:sunspot/sunspot.git
cd sunspot
open sunspot/lib/sunspot/dsl/scope.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sunspot--DSL--Scope-field_list-for-pr
# Commit to gitgit add sunspot/lib/sunspot/dsl/scope.rbgit commit -m "better docs for Sunspot::DSL::Scope#field_list"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sunspot--DSL--Scope-field_list-for-pr
hub pull-request
# Celebrate!