Sha256: 0d35009051052e8e2eb9556448200e38b938bc7aa6811088c7ae0c39ed0f04be

Contents?: true

Size: 366 Bytes

Versions: 13

Compression:

Stored size: 366 Bytes

Contents

require 'active_record/connection_adapters/abstract_adapter'

ActiveRecord::ConnectionAdapters::IndexDefinition.class_eval do
  attr_accessor :spatial

  alias_method :initialize_without_spatial, :initialize
  def initialize(table, name, unique, columns, spatial = false)
    initialize_without_spatial(table, name, unique, columns)
    @spatial = spatial
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
rs_spatial_adapter-1.2.0 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.3.1 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.3.0 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.2.0 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.1.2 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.1.1 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.1.0 lib/spatial_adapter/common/schema_definitions.rb
achirkunov-spatial_adapter-1.0.0 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-1.0.0 lib/spatial_adapter/common/schema_definitions.rb
spatial_adapter-0.3.1 lib/spatial_adapter/schema_definitions.rb
spatial_adapter-0.3.0 lib/spatial_adapter/schema_definitions.rb
spatial_adapter-0.2.1 lib/spatial_adapter/schema_definitions.rb
spatial_adapter-0.2.0 lib/spatial_adapter/schema_definitions.rb