From 0036bfb83aa1b832d117affa7397af1161d74538 Mon Sep 17 00:00:00 2001 From: Sergei Avanesov Date: Fri, 1 Dec 2017 13:28:48 +0300 Subject: [PATCH] Add rgeo adapter for mysql (#186) --- 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 8d41112..ab06819 100644 --- a/lib/groupdate/magic.rb +++ b/lib/groupdate/magic.rb @@ -28,7 +28,7 @@ module Groupdate adapter_name = relation.connection.adapter_name query = case adapter_name - when "MySQL", "Mysql2", "Mysql2Spatial" + when "MySQL", "Mysql2", "Mysql2Spatial", 'Mysql2Rgeo' case period when :day_of_week # Sunday = 0, Monday = 1, etc # use CONCAT for consistent return type (String) -- libgit2 0.21.0