public
Created

  • Download Gist
inject.rb
Ruby
1 2 3 4 5 6 7 8 9
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.