Sha256: f53e35d5eb8f40d11195c94f5f6a927fbe0655601f24362356af89473695ba35
Contents?: true
Size: 167 Bytes
Versions: 3
Compression:
Stored size: 167 Bytes
Contents
module MySQLPoint::Quoting def quote(value) if value.respond_to?(:to_wkt) "ST_GeomFromText(#{super(value.to_wkt)})" else super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mysql_point-1.0.2 | lib/mysql_point/quoting.rb |
mysql_point-1.0.1 | lib/mysql_point/quoting.rb |
mysql_point-1.0.0 | lib/mysql_point/quoting.rb |