From e22b1b34368295e13d30db467fa01616acb8f6b5 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Mon, 15 Jan 2024 16:17:55 +0100 Subject: [PATCH] Rubocop fixes --- app/helpers/dashboards_helper.rb | 2 +- lib/additionals/helpers.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/dashboards_helper.rb b/app/helpers/dashboards_helper.rb index 3f97243d..9c90b7a8 100644 --- a/app/helpers/dashboards_helper.rb +++ b/app/helpers/dashboards_helper.rb @@ -114,7 +114,7 @@ def dashboard_links(title, active_dashboard, dashboards, project) return '' unless dashboards.any? tag.h3(title, class: 'dashboards') + - tag.ul(class: 'dashboards') do # rubocop: disable Style/MethodCallWithArgsParentheses + tag.ul(class: 'dashboards') do dashboards.each do |dashboard| selected = dashboard.id == if params[:dashboard_id].present? params[:dashboard_id].to_i diff --git a/lib/additionals/helpers.rb b/lib/additionals/helpers.rb index 01ac19f4..9e36b6e6 100644 --- a/lib/additionals/helpers.rb +++ b/lib/additionals/helpers.rb @@ -26,10 +26,10 @@ def render_query_block_columns(query, entry, tr_classes:, with_buttons: false, w query.block_columns.each do |column| next if !(text = column_content column, entry) || text.blank? - content << tag.tr(class: "#{tr_classes} block-row") do # rubocop: disable Style/MethodCallWithArgsParentheses + content << tag.tr(class: "#{tr_classes} block-row") do tds = [] tds << tag.td('', class: 'hide') if with_buttons && with_checkbox - tds << tag.td(colspan: td_colspan, class: "#{column.css_classes} block_column") do # rubocop: disable Style/MethodCallWithArgsParentheses + tds << tag.td(colspan: td_colspan, class: "#{column.css_classes} block_column") do td_content = [] td_content << tag.span(column.caption) if query.block_columns.count > 1 td_content << text