molten-trunk/molten5_withgrid/vendor/plugins/acts_as_searchable/lib/searchable.rb
def searchable_classname(klass)
        # climb hierarchy until we find the class that includes Searchable
        # this will return the top-level class if it doesn't, but that shouldn't be a problem
        while Info[klass.name.to_sym].nil?
          break if klass.superclass.nil?
          klass = klass.superclass
        end
        klass.name.to_sym
      end
# Figure out the name of the class that included Searchable (which may not be the class being passed in)
Figure out the name of the class that included Searchable (which may not be the class being passed in)
Figure out the name of the class that included Searchable ( which may not be the class being passed in )
def searchable_classname(klass)
        while Info[klass.name.to_sym].nil?
          break if klass.superclass.nil?
          klass = klass.superclass
        end
        klass.name.to_sym
      end
def searchable_classname ( klass ) while Info [ klass . name . to_sym ] . nil? break if klass . superclass . nil? klass = klass . superclass end klass . name . to_sym end
Figure out the name of the class that included Searchable (which may not be the class being passed in)
Figure out the name of the class that included Searchable ( which may not be the class being passed in )
# climb hierarchy until we find the class that includes Searchable # this will return the top-level class if it doesn't, but that shouldn't be a problem
klass