molten-trunk/molten5_withgrid/vendor/plugins/acts_as_searchable/lib/searchable.rb
# A collection of fieldnames present for this class
A collection of fieldnames present for this class
A collection of fieldnames present for this class
def searchable_fieldnames(field, stack = [])
        fieldnames = []
        fieldnames << [stack + [field.indexed_name.to_s]].join(".") if field.include.empty?
        field.include.values.each do |subfield|
          fieldnames += searchable_fieldnames( subfield, stack + [field.indexed_name.to_s] )
        end
        fieldnames
      end
def searchable_fieldnames ( field , stack = [ ] ) fieldnames = [ ] fieldnames << [ stack + [ field . indexed_name . to_s ] ] . join ( "." ) if field . include . empty? field . include . values . each do | subfield | fieldnames += searchable_fieldnames ( subfield , stack + [ field . indexed_name . to_s ] ) end fieldnames end
A collection of fieldnames present for this class
A collection of fieldnames present for this class
field
stack