Sha256: b0aa8b65560a252a209fa839cbb80a01c1898a7d0b20642c7430d87de8da2cce

Contents?: true

Size: 424 Bytes

Versions: 37

Compression:

Stored size: 424 Bytes

Contents

module PostGISTypes
  def initialize_type_map(mapping)
    super
    register_class_with_limit mapping, 'geometry', ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::SpecializedString
    register_class_with_limit mapping, 'geography', ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::SpecializedString
  end
end

ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
  prepend PostGISTypes
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
spatial_features-2.12.0 config/initializers/register_oids.rb
spatial_features-2.11.1 config/initializers/register_oids.rb
spatial_features-2.11.0 config/initializers/register_oids.rb
spatial_features-2.10.9 config/initializers/register_oids.rb
spatial_features-2.10.8 config/initializers/register_oids.rb
spatial_features-2.10.7 config/initializers/register_oids.rb
spatial_features-2.10.6 config/initializers/register_oids.rb
spatial_features-2.10.5 config/initializers/register_oids.rb
spatial_features-2.10.4 config/initializers/register_oids.rb
spatial_features-2.10.3 config/initializers/register_oids.rb
spatial_features-2.10.2 config/initializers/register_oids.rb
spatial_features-2.10.1 config/initializers/register_oids.rb
spatial_features-2.10.0 config/initializers/register_oids.rb
spatial_features-2.9.3 config/initializers/register_oids.rb
spatial_features-2.9.2 config/initializers/register_oids.rb
spatial_features-2.9.1 config/initializers/register_oids.rb
spatial_features-2.9.0 config/initializers/register_oids.rb
spatial_features-2.8.1 config/initializers/register_oids.rb
spatial_features-2.8.0 config/initializers/register_oids.rb
spatial_features-2.7.8 config/initializers/register_oids.rb