lib/supernova/solr_indexer.rb in supernova-0.3.6 vs lib/supernova/solr_indexer.rb in supernova-0.3.8

- old
+ new

@@ -9,9 +9,15 @@ class << self def field_definitions @field_definitions ||= {} end + def select_fields + field_definitions.map do |key, attributes| + attributes[:virtual] != true ? key : nil + end.compact + end + def has(key, attributes) field_definitions[key] = attributes.is_a?(Hash) ? attributes : { :type => attributes } end def clazz(class_name =:only_return) \ No newline at end of file