Sha256: ad857e1f8966e8b27a9ac03eb0cfd69d9864be4033c8354ecf3f1706ae4d56d1

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

# Rails initialization (for Rails 2.x)
#
# This will load the adapter for the currently used database configuration, if
# it exists.

begin
  adapter = ActiveRecord::Base.configurations[RAILS_ENV]['adapter']
  require "spatial_adapter/#{adapter}"
rescue LoadError
  raise SpatialAdapter::NotCompatibleError.new("spatial_adapter does not currently support the #{adapter} database.")
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rs_spatial_adapter-1.2.0 rails/init.rb
spatial_adapter-1.3.1 rails/init.rb
spatial_adapter-1.3.0 rails/init.rb
spatial_adapter-1.2.0 rails/init.rb
spatial_adapter-1.1.2 rails/init.rb