Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created November 26, 2012 02:05
Show Gist options
  • Save tpitale/4146210 to your computer and use it in GitHub Desktop.
Save tpitale/4146210 to your computer and use it in GitHub Desktop.
Searchable Block
searchable do
text :id
text :content
text :caller
text(:username) {(assigned_user || user).name}
text(:customer_number) {customer.customer_number}
text(:customer_name) {customer.name}
text(:customer_address) {[customer.address, customer.city, customer.state, customer.zip]}
time :created_at
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment