Sha256: ecc435e84c7e3dc9c85a4c82069153fe4564dc480940fad2bc1e8257a328cb07
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 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}" # Also load the adapter for the test environment. In 2.2, at least, when running db:test:prepare, the first # connection instantiated is the RAILS_ENV one, not 'test'. test_adapter = ActiveRecord::Base.configurations['test']['adapter'] require "spatial_adapter/#{test_adapter}" rescue LoadError => e puts "Caught #{e} #{e.message} #{e.backtrace.join("\n")}" raise SpatialAdapter::NotCompatibleError.new("spatial_adapter does not currently support the #{adapter} database.") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beh_spatial_adapter-1.1.2 | rails/init.rb |