Explorar o código

Fixed sql highlighting

Andrew Kane %!s(int64=8) %!d(string=hai) anos
pai
achega
624b75a50e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/views/blazer/queries/show.html.erb

+ 1 - 1
app/views/blazer/queries/show.html.erb

@@ -172,7 +172,7 @@
   </script>
 <% end %>
 
-<% if Blazer.data_sources[@query.data_source].adapter == "sql" %>
+<% if %w[sql presto].include?(Blazer.data_sources[@query.data_source].adapter) %>
   <script>
     // do not highlight really long queries
     // this can lead to performance issues