lib/sunspot/query/query_facet.rb in outoftime-sunspot-0.9.6 vs lib/sunspot/query/query_facet.rb in outoftime-sunspot-0.9.7
- old
+ new
@@ -12,11 +12,12 @@
# query facet rows, instead returning each requested row individually, keyed
# by the boolean phrase used in the facet query.
#
class QueryFacet
attr_reader :name #:nodoc:
+ attr_reader :field #:nodoc:
- def initialize(name, setup) #:nodoc:
+ def initialize(name, setup = nil) #:nodoc:
@name = name
@setup = setup
@components = []
end