Sha256: d9715d0f693db95cceb1790357a5e1d2f715b89a599f859edf356556aa4e7199

Contents?: true

Size: 386 Bytes

Versions: 12

Compression:

Stored size: 386 Bytes

Contents

include SpatialAdapter

ActiveRecord::ConnectionAdapters::TableDefinition.class_eval do
  SpatialAdapter.geometry_data_types.keys.each do |column_type|
    class_eval <<-EOV
      def #{column_type}(*args)
        options = args.extract_options!
        column_names = args
      
        column_names.each { |name| column(name, '#{column_type}', options) }
      end
    EOV
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

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