Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created February 16, 2012 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/1846715 to your computer and use it in GitHub Desktop.
Save bcardarella/1846715 to your computer and use it in GitHub Desktop.
# Search.available_fields.find_all{|i| !i[:on_main_table]}.map{|i| i[:value].to_sym}
Search.available_fields.inject([]) do |collection, member|
if member[:on_main_table]
collection << member[:value].to_sym
else
collection
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment