Create a gist now

Instantly share code, notes, and snippets.

# 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