diff --git a/hobo/lib/hobo/model/scopes/automatic_scopes.rb b/hobo/lib/hobo/model/scopes/automatic_scopes.rb index 493b9c04a..4a6892fce 100644 --- a/hobo/lib/hobo/model/scopes/automatic_scopes.rb +++ b/hobo/lib/hobo/model/scopes/automatic_scopes.rb @@ -319,7 +319,7 @@ def create_scope(check_only=false) return true if check_only def_scope do |query, *fields| - match_keyword = ::ActiveRecord::Base.connection.adapter_name == "PostgreSQL" ? "ILIKE" : "LIKE" + match_keyword = %w(PostgreSQL PostGIS).include?(::ActiveRecord::Base.connection.adapter_name) ? "ILIKE" : "LIKE" words = query.split args = []