Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Setup the field a bit earlier

  • Loading branch information...
commit 0580e3b1dc5183f9d5d8ad512042cd3e80ba2049 1 parent bd8399e
Ben Woosley authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 sunspot/lib/sunspot/dsl/standard_query.rb
4 sunspot/lib/sunspot/dsl/standard_query.rb
@@ -109,8 +109,8 @@ def with(*args)
109 109 case args.first
110 110 when String, Symbol
111 111 if args.length == 1 # NONE
112   - field_name = args[0]
113   - return DSL::RestrictionWithNear.new(@setup.field(field_name.to_sym), @scope, @query, false)
  112 + field = @setup.field(args[0].to_sym)
  113 + return DSL::RestrictionWithNear.new(field, @scope, @query, false)
114 114 end
115 115 end
116 116

0 comments on commit 0580e3b

Please sign in to comment.
Something went wrong with that request. Please try again.