Sha256: 3a8f306d77a0c6026739dba32983709f03e0c4b59d07957bc83ee2dcf938dfb8
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
module SpatialAdapter class Railtie < Rails::Railtie initializer "spatial_adapter.load_current_database_adapter" do adapter = ActiveRecord::Base.configurations[Rails.env]['adapter'] begin require "spatial_adapter/#{adapter}" rescue LoadError => e raise SpatialAdapter::NotCompatibleError.new("spatial_adapter does not currently support the #{adapter} database.") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beh_spatial_adapter-1.1.2 | lib/spatial_adapter/railtie.rb |