Skip to content

Business intelligence made simple

Fixed error with Rails 5.0

Andrew Kane451c4c7b257b
diff --git a/app/views/blazer/queries/show.html.erb b/app/views/blazer/queries/show.html.erb
index d7c74a2c..4f7447ae 100644
--- a/app/views/blazer/queries/show.html.erb
+++ b/app/views/blazer/queries/show.html.erb
@@ -4,6 +4,7 @@
<% run_data = {statement: @query.statement, query_id: @query.id, variables: variable_params(@query)} %>
<% run_data.merge!(forecast: "t") if params[:forecast] %>
<% run_data.merge!(cohort_period: params[:cohort_period]) if params[:cohort_period] %>
+ <% run_data.transform_keys!(&:to_s) if Rails::VERSION::STRING.to_f == 5.0 %>
<% end %>
<div class="topbar">