Fix rubocop offenses

This commit is contained in:
Alexander Meindl 2022-09-09 13:10:21 +02:00
parent ee1448d077
commit fa91220a05

View File

@ -73,10 +73,11 @@ class DashboardsController < ApplicationController
@allowed_projects = @dashboard.allowed_target_projects @allowed_projects = @dashboard.allowed_target_projects
if @dashboard.save if @dashboard.save
flash[:notice] = l :notice_successful_create
respond_to do |format| respond_to do |format|
format.html { redirect_to dashboard_link_path(@project, @dashboard) } format.html do
flash[:notice] = l :notice_successful_create
redirect_to dashboard_link_path(@project, @dashboard)
end
format.api { render action: 'show', status: :created, location: dashboard_url(@dashboard, project_id: @project) } format.api { render action: 'show', status: :created, location: dashboard_url(@dashboard, project_id: @project) }
end end
else else