Lint Slim files and fix offenses

The fixing was partially done manually and partially automatically.
This commit is contained in:
Sebastian Serth
2024-04-13 20:06:03 +02:00
committed by Dominic Sauer
parent ddfa06ffaa
commit 9a9efd5caa
91 changed files with 378 additions and 392 deletions

View File

@@ -1,4 +1,4 @@
- model = controller_path.classify.constantize rescue nil
- model = controller_path.classify.constantize rescue nil # rubocop:disable Style/RescueModifier
- if model
- object = model.find_by(id: params[:id])
- if (parent_model = model.try(:parent_resource))
@@ -26,7 +26,7 @@
- active_action = t("breadcrumbs.#{controller_name}.#{params[:action]}")
- title = "#{application_name}"
- title = application_name.to_s
- title = "#{active_action} - #{title}" unless %w[index show].include? params[:action]
- content_for :breadcrumbs do
.container.mb-4