Sha256: 93f366efca1c9ec4b8d667ac94eae8717344b8dc3068ad848f7f9cd25d121b35
Contents?: true
Size: 453 Bytes
Versions: 8
Compression:
Stored size: 453 Bytes
Contents
class SpatialAdapterNotCompatibleError < StandardError end if ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::MysqlAdapter) require 'mysql_spatial_adapter' elsif ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) require 'post_gis_adapter' else raise SpatialAdapterNotCompatibleError.new("Only MySQL and PostgreSQL are currently supported by the spatial adapter plugin.") end
Version data entries
8 entries across 8 versions & 1 rubygems