Sha256: 7ee3e018b63ed26309da1c3f1fe78d560420a3c151c525f59c1f1136e6a32f77
Contents?: true
Size: 449 Bytes
Versions: 5
Compression:
Stored size: 449 Bytes
Contents
module Arel # :nodoc: module Visitors # :nodoc: class PostGIS < PostgreSQL # :nodoc: FUNC_MAP = { 'st_wkttosql' => 'ST_GeomFromEWKT', } include ::RGeo::ActiveRecord::SpatialToSql def st_func(standard_name_) FUNC_MAP[standard_name_.downcase] || standard_name_ end alias_method :visit_in_spatial_context, :visit end VISITORS['postgis'] = ::Arel::Visitors::PostGIS end end
Version data entries
5 entries across 5 versions & 2 rubygems