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-1.6.1 config/initializers/register_oids.rb
spatial_features-1.6.0 config/initializers/register_oids.rb
spatial_features-1.5.12 config/initializers/register_oids.rb
spatial_features-1.5.11 config/initializers/register_oids.rb
spatial_features-1.5.10 config/initializers/register_oids.rb
spatial_features-1.5.9 config/initializers/register_oids.rb
spatial_features-1.5.6 config/initializers/register_oids.rb
spatial_features-1.5.5 config/initializers/register_oids.rb
spatial_features-1.5.4 config/initializers/register_oids.rb
spatial_features-1.5.3 config/initializers/register_oids.rb
spatial_features-1.5.2 config/initializers/register_oids.rb
spatial_features-1.5.1 config/initializers/register_oids.rb
spatial_features-1.5.0 config/initializers/register_oids.rb
spatial_features-1.4.9 config/initializers/register_oids.rb
spatial_features-1.4.8 config/initializers/register_oids.rb