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.7.7 config/initializers/register_oids.rb
spatial_features-2.7.6 config/initializers/register_oids.rb
spatial_features-2.7.5 config/initializers/register_oids.rb
spatial_features-2.7.4 config/initializers/register_oids.rb
spatial_features-2.7.2 config/initializers/register_oids.rb
spatial_features-2.7.1 config/initializers/register_oids.rb
spatial_features-2.7.0 config/initializers/register_oids.rb
spatial_features-2.6.4 config/initializers/register_oids.rb
spatial_features-2.6.3 config/initializers/register_oids.rb
spatial_features-2.6.2 config/initializers/register_oids.rb
spatial_features-2.6.1 config/initializers/register_oids.rb
spatial_features-2.6.0 config/initializers/register_oids.rb
spatial_features-2.5.3 config/initializers/register_oids.rb
spatial_features-2.5.2 config/initializers/register_oids.rb
spatial_features-2.5.1 config/initializers/register_oids.rb
spatial_features-2.5.0 config/initializers/register_oids.rb
spatial_features-2.4.3 config/initializers/register_oids.rb