From d99d2c69cb20ad321456109f71373242b17dfc1a Mon Sep 17 00:00:00 2001 From: Max Riveiro Date: Fri, 30 Oct 2015 22:16:45 +0300 Subject: [PATCH] Add Mysql2Spatial adapter support --- lib/groupdate/magic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/groupdate/magic.rb b/lib/groupdate/magic.rb index fef9873..911d83e 100644 --- a/lib/groupdate/magic.rb +++ b/lib/groupdate/magic.rb @@ -36,7 +36,7 @@ module Groupdate adapter_name = relation.connection.adapter_name query = case adapter_name - when "MySQL", "Mysql2" + when "MySQL", "Mysql2", "Mysql2Spatial" case field when :day_of_week # Sunday = 0, Monday = 1, etc # use CONCAT for consistent return type (String) -- libgit2 0.21.0