Sha256: 020f662b839ba3e8822bd7a911f90437d119ab10da27e89274e689a4849147d5

Contents?: true

Size: 497 Bytes

Versions: 35

Compression:

Stored size: 497 Bytes

Contents

ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
  def initialize_type_map_with_postgres_oids mapping
    initialize_type_map_without_postgres_oids mapping
    register_class_with_limit mapping, 'geometry', ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::SpecializedString
    register_class_with_limit mapping, 'geography', ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::SpecializedString
  end

  alias_method_chain :initialize_type_map, :postgres_oids
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spatial_features-2.4.2 config/initializers/register_oids.rb
spatial_features-2.4.1 config/initializers/register_oids.rb
spatial_features-2.4.0 config/initializers/register_oids.rb
spatial_features-2.3.1 config/initializers/register_oids.rb
spatial_features-2.3.0 config/initializers/register_oids.rb
spatial_features-2.2.4 config/initializers/register_oids.rb
spatial_features-2.2.3 config/initializers/register_oids.rb
spatial_features-2.2.2 config/initializers/register_oids.rb
spatial_features-2.2.1 config/initializers/register_oids.rb
spatial_features-2.2.0 config/initializers/register_oids.rb
spatial_features-2.1.7 config/initializers/register_oids.rb
spatial_features-2.1.6 config/initializers/register_oids.rb
spatial_features-2.1.5 config/initializers/register_oids.rb
spatial_features-2.1.4 config/initializers/register_oids.rb
spatial_features-2.1.2 config/initializers/register_oids.rb
spatial_features-2.1.1 config/initializers/register_oids.rb
spatial_features-2.1.0 config/initializers/register_oids.rb
spatial_features-2.0.0 config/initializers/register_oids.rb
spatial_features-1.7.1 config/initializers/register_oids.rb
spatial_features-1.7.0 config/initializers/register_oids.rb