lib/armg.rb in armg-0.2.0 vs lib/armg.rb in armg-0.3.0
- old
+ new
@@ -5,13 +5,13 @@
ActiveSupport.on_load(:active_record) do
require 'active_record/connection_adapters/abstract_mysql_adapter'
require 'armg/abstract_mysql_adapter_ext'
require 'armg/mysql_geometry'
require 'armg/table_definition_ext'
+ require 'armg/armg'
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
-