Sha256: 3d18651d2e669bc87d186cf3f588775fd684a1a843c0842790ce2df2e0a6b4aa
Contents?: true
Size: 427 Bytes
Versions: 5
Compression:
Stored size: 427 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 raise SpatialAdapter::NotCompatibleError.new("spatial_adapter does not currently support the #{adapter} database.") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems