Permalink
Browse files

This shouldn't have been commited, it doesn't work

  • Loading branch information...
1 parent 8105aa1 commit 374f2e6411a8786ee462d4e25ec63e0f67d2733b @jlecour jlecour committed Oct 16, 2010
Showing with 0 additions and 15 deletions.
  1. +0 −15 lib/geokit-rails3/acts_as_mappable.rb
@@ -73,21 +73,6 @@ def adapter
raise UnsupportedAdapter, "`#{connection.adapter_name.downcase}` is not a supported adapter."
end
end
-
- def where(clause)
- g self
- pattern = Regexp.new("\\b#{distance_column_name}\\b")
- value = @distance_formula
-
- g new_clause = if clause.is_a?(String)
- clause.gsub!(pattern, value)
- elsif clause.is_a?(Array)
- clause.first.gsub!(pattern, value)
- else
- clause
- end
- super(new_clause)
- end
def within(distance, options = {})
options[:within] = distance

0 comments on commit 374f2e6

Please sign in to comment.