postgres_ext-postgis 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bd1eecd2969d11c3a78842043989c1f43bf0e3b
|
4
|
+
data.tar.gz: 9e657f1c97ba3319e6606db148bf3d1a3faa4204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d28e274fefdfc8a3a76a3dc883d083bb01a6359f73e7456e5fe47019126c19090bdea0df841c9b62c61caabb9ce2e971ec28f020de5ab27eb2a7a3b09d3c79
|
7
|
+
data.tar.gz: 6cd502f552c0f67a2e11d3da414ad9737549ee0f329b3160c4c1823ecce21d54d1977b9d195ee1bec042e1afbce781d3fe09bfb447bf7034642e0698a6db1737
|
@@ -66,7 +66,7 @@ module PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
|
|
66
66
|
|
67
67
|
module Quoting
|
68
68
|
def quote(value, column = nil)
|
69
|
-
if column && column.type == :geometry
|
69
|
+
if column && (column.type == :geometry || column.type == :geography)
|
70
70
|
ActiveRecord::ConnectionAdapters::PostgreSQLColumn.geometry_to_string(value)
|
71
71
|
else
|
72
72
|
super
|
@@ -78,7 +78,7 @@ module PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
|
|
78
78
|
|
79
79
|
case value
|
80
80
|
when RGeo::Feature::Instance
|
81
|
-
return super unless /geometry/ =~ column.sql_type
|
81
|
+
return super unless /geometry|geography/ =~ column.sql_type
|
82
82
|
ActiveRecord::ConnectionAdapters::PostgreSQLColumn.geometry_to_string(value)
|
83
83
|
else
|
84
84
|
super
|