Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

obey rubocop

as-opf51967d8525a
diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rb
index 87206003eab..53311bc1396 100644
--- a/app/controllers/custom_styles_controller.rb
+++ b/app/controllers/custom_styles_controller.rb
@@ -192,13 +192,13 @@ class CustomStylesController < ApplicationController
end
def custom_style_params
- params.require(:custom_style).permit(:logo, :remove_logo,
- :export_logo, :remove_export_logo,
- :export_cover, :remove_export_cover,
- :export_cover_text_color,
- :export_footer, :remove_export_footer,
- :favicon, :remove_favicon,
- :touch_icon, :remove_touch_icon)
+ params.expect(custom_style: %i[logo remove_logo
+ export_logo remove_export_logo
+ export_cover remove_export_cover
+ export_cover_text_color
+ export_footer remove_export_footer
+ favicon remove_favicon
+ touch_icon remove_touch_icon])
end
def file_download(path_method)