mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Fix rubocop offenses in wikis module
Those sneaked in most likely due to a Rubocop update. Fixing them all at once, bringing the wikis module back to formall no offenses.
This commit is contained in:
@@ -85,7 +85,7 @@ module Wikis
|
||||
end
|
||||
|
||||
def find_provider
|
||||
@provider = ::Wikis::Provider.visible.find(params[:wiki_provider_id])
|
||||
@provider = ::Wikis::Provider.visible.find(params.expect(:wiki_provider_id))
|
||||
end
|
||||
|
||||
def create_and_store_report
|
||||
|
||||
@@ -99,7 +99,7 @@ module Wikis
|
||||
end
|
||||
|
||||
def find_wiki_provider
|
||||
@wiki_provider = Wikis::Provider.visible.find(params[:wiki_provider_id])
|
||||
@wiki_provider = Wikis::Provider.visible.find(params.expect(:wiki_provider_id))
|
||||
end
|
||||
|
||||
def respond_for_success
|
||||
|
||||
@@ -150,13 +150,13 @@ module Wikis
|
||||
end
|
||||
|
||||
def find_wiki_provider
|
||||
@wiki_provider = editable_wiki_providers.find(params[:id])
|
||||
@wiki_provider = editable_wiki_providers.find(params.expect(:id))
|
||||
end
|
||||
|
||||
def continue_from_wizard_params
|
||||
return if params[:continue_wizard].blank?
|
||||
|
||||
editable_wiki_providers.find(params[:continue_wizard])
|
||||
editable_wiki_providers.find(params.expect(:continue_wizard))
|
||||
end
|
||||
|
||||
def wiki_provider_params
|
||||
|
||||
@@ -49,6 +49,6 @@ class WorkPackageWikisTabController < ApplicationController
|
||||
private
|
||||
|
||||
def set_work_package
|
||||
@work_package = @project.work_packages.visible.find(params[:work_package_id])
|
||||
@work_package = @project.work_packages.visible.find(params.expect(:work_package_id))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user