app/models/data_file.rb
#the annotation string values to be included in search indexing
the annotation string values to be included in search indexing
the annotation string values to be included in search indexing
def spreadsheet_annotation_search_fields
    annotations = []
    unless content_blob.nil?
      content_blob.worksheets.each do |ws|
        ws.cell_ranges.each do |cell_range|
          annotations = annotations | cell_range.annotations.collect{|a| a.value.text}
        end
      end
    end
    annotations
  end
def spreadsheet_annotation_search_fields annotations = [ ] unless content_blob . nil? content_blob . worksheets . each do | ws | ws . cell_ranges . each do | cell_range | annotations = annotations | cell_range . annotations . collect { | a | a . value . text } end end end annotations end
the annotation string values to be included in search indexing
the annotation string values to be included in search indexing