lib/armg.rb in armg-0.1.0 vs lib/armg.rb in armg-0.2.0
- old
+ new
@@ -1,6 +1,7 @@
require 'active_support/lazy_load_hooks'
+require 'rgeo'
require 'armg/version'
ActiveSupport.on_load(:active_record) do
require 'active_record/connection_adapters/abstract_mysql_adapter'
require 'armg/abstract_mysql_adapter_ext'
@@ -9,7 +10,8 @@
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::NATIVE_DATABASE_TYPES[:geometry] = { name: "geometry" }
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter.prepend(Armg::AbstractMysqlAdapterExt)
ActiveRecord::Type.register(:geometry, Armg::MysqlGeometry, adapter: :mysql2)
ActiveRecord::ConnectionAdapters::MySQL::TableDefinition.prepend(Armg::TableDefinitionExt)
+ ActiveRecord::ConnectionAdapters::MySQL::Table.prepend(Armg::TableDefinitionExt)
end