Permalink
Browse files

more useful to return the query

  • Loading branch information...
1 parent 0fd47b5 commit 1488a3cd5de8212d431b61b2885953e47ed8e01b @fcheung committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tire/search/query.rb
View
@@ -39,7 +39,7 @@ def custom_filters_score(options={}, &block)
@custom_filters ||= CustomFiltersScoreQuery.new(options)
block.arity < 1 ? @custom_filters.instance_eval(&block) : block.call(@custom_filters) if block_given?
@value[:custom_filters_score] = @custom_filters.to_hash
- @value
+ @custom_filters
end
def custom_score(options={}, &block)

0 comments on commit 1488a3c

Please sign in to comment.