geokit-rails3 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,21 +73,6 @@ module Geokit
73
73
  raise UnsupportedAdapter, "`#{connection.adapter_name.downcase}` is not a supported adapter."
74
74
  end
75
75
  end
76
-
77
- def where(clause)
78
- g self
79
- pattern = Regexp.new("\\b#{distance_column_name}\\b")
80
- value = @distance_formula
81
-
82
- g new_clause = if clause.is_a?(String)
83
- clause.gsub!(pattern, value)
84
- elsif clause.is_a?(Array)
85
- clause.first.gsub!(pattern, value)
86
- else
87
- clause
88
- end
89
- super(new_clause)
90
- end
91
76
 
92
77
  def within(distance, options = {})
93
78
  options[:within] = distance
@@ -1,3 +1,3 @@
1
1
  module GeokitRails3
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geokit-rails3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Lewis