Skip to content

Business intelligence made simple

Fixed comparison of Symbol with String failed error with certain versions of Rails - fixes #411

Andrew Kane3ada2e97b95c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4cbb5dce..918d29ef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
## 2.6.5 (unreleased)
- Use monotonic time
+- Fixed `comparison of Symbol with String failed` error with certain versions of Rails
## 2.6.4 (2022-05-24)
diff --git a/app/views/blazer/queries/show.html.erb b/app/views/blazer/queries/show.html.erb
index 54d8399a..a8e6a2f1 100644
--- a/app/views/blazer/queries/show.html.erb
+++ b/app/views/blazer/queries/show.html.erb
@@ -4,7 +4,7 @@
<% run_data = {statement: @query.statement, query_id: @query.id, data_source: @query.data_source, 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 %>
+ <% run_data.transform_keys!(&:to_s) if Rails::VERSION::MAJOR < 6 %>
<% end %>
<div class="topbar">