Module: MySQLPoint::Quoting
- Defined in:
- lib/mysql_point/quoting.rb
Instance Method Summary collapse
Instance Method Details
#quote(value) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/mysql_point/quoting.rb', line 2 def quote(value) if value.respond_to?(:to_wkt) "ST_GeomFromText(#{super(value.to_wkt)})" else super end end |