From d9ef2d191cdb3d04508530275bc99c3710820fcb Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 20 Dec 2023 07:16:35 +0000 Subject: Fix RuboCop offense Lint/SymbolConversion (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/activity/fetcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine/activity') diff --git a/lib/redmine/activity/fetcher.rb b/lib/redmine/activity/fetcher.rb index 9fc914a58..54c177586 100644 --- a/lib/redmine/activity/fetcher.rb +++ b/lib/redmine/activity/fetcher.rb @@ -45,7 +45,7 @@ module Redmine options = provider.activity_provider_options[event_type] permission = options[:permission] unless options.key?(:permission) - permission ||= "view_#{event_type}".to_sym + permission ||= :"view_#{event_type}" end if permission keep |= projects.any? {|p| @user.allowed_to?(permission, p)} -- cgit v1.2.3