Sha256: e4624be3502050099fb4d09e43ad63fe6b7e76a810d87d5e84bf1ea876a5a127
Contents?: true
Size: 377 Bytes
Versions: 2
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true module Armg module AbstractMysqlAdapterExt def indexes(*args, &block) is = super is.each do |i| i.lengths = nil if i.type == :spatial && i.respond_to?(:lengths=) end is end def type_map @type_map ||= super.tap { |m| m.register_type(/^geometry/i, Armg::MysqlGeometry.new) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
armg-0.11.0 | lib/armg/abstract_mysql_adapter_ext.rb |
armg-0.10.0 | lib/armg/abstract_mysql_adapter_ext.rb |