Skip to content

Commit

Permalink
Fixes issue alexreisner#86.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoverlover committed Sep 22, 2011
1 parent a977760 commit 96da29c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/geocoder/stores/active_record.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def full_near_scope_options(latitude, longitude, radius, options)
:select => "#{options[:select] || '*'}, " + :select => "#{options[:select] || '*'}, " +
"#{distance} AS distance" + "#{distance} AS distance" +
(bearing ? ", #{bearing} AS bearing" : ""), (bearing ? ", #{bearing} AS bearing" : ""),
:having => "#{distance} <= #{radius}" :conditions => "#{distance} <= #{radius}"
) )
end end


Expand Down Expand Up @@ -178,7 +178,6 @@ def default_near_scope_options(latitude, longitude, radius, options)
conditions << obj.id conditions << obj.id
end end
{ {
:group => columns.map{ |c| "#{table_name}.#{c.name}" }.join(','),
:order => options[:order], :order => options[:order],
:limit => options[:limit], :limit => options[:limit],
:offset => options[:offset], :offset => options[:offset],
Expand Down

0 comments on commit 96da29c

Please sign in to comment.