Permalink
Browse files

fixed all updates

  • Loading branch information...
Alexander Sweeney
Alexander Sweeney committed Jul 17, 2012
1 parent b2fa39e commit 4e87ffbb73c7da3d9701059e8839ce3fb53fe0e7
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/spatial_adapter/mysql.rb
@@ -16,7 +16,7 @@ def columns(table_name, name = nil)#:nodoc:
if field[1] =~ GEOMETRY_REGEXP if field[1] =~ GEOMETRY_REGEXP
ActiveRecord::ConnectionAdapters::SpatialMysqlColumn ActiveRecord::ConnectionAdapters::SpatialMysqlColumn
else else
ActiveRecord::ConnectionAdapters::MysqlAdapter::Column ActiveRecord::ConnectionAdapters::MysqlAdapter::Column # update for new version of driver
end end
columns << klass.new(field[0], field[4], field[1], field[2] == "YES") columns << klass.new(field[0], field[4], field[1], field[2] == "YES")
end end
@@ -51,6 +51,6 @@ def options_for(table)
class SpatialMysqlColumn < MysqlAdapter::Column class SpatialMysqlColumn < MysqlAdapter::Column
include SpatialAdapter::SpatialColumn include SpatialAdapter::SpatialColumn
extend SpatialAdapter::Base::Mysql::SpatialColumn extend SpatialAdapter::Base::Mysql::SpatialColumn # update for new version of driver
end end
end end

0 comments on commit 4e87ffb

Please sign in to comment.