diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-25 01:32:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-25 01:32:23 +0000 |
commit | 32d2b1c42f76c07e13bcf748b2071a29cf350606 (patch) | |
tree | a178f5208bdb7f5e9a43dca6cdbc5ac144b59459 /app/controllers/roles_controller.rb | |
parent | f27de353381a45427b6e38b87c973902de92484f (diff) | |
download | redmine-32d2b1c42f76c07e13bcf748b2071a29cf350606.tar.gz redmine-32d2b1c42f76c07e13bcf748b2071a29cf350606.zip |
Fix RuboCop offense Style/InverseMethods: Use `present?` instead of inverting `blank?` (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/roles_controller.rb')
-rw-r--r-- | app/controllers/roles_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 70aa19ae6..35b753f31 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -63,7 +63,7 @@ class RolesController < ApplicationController @role.safe_attributes = params[:role] if request.post? && @role.save # workflow copy - if !params[:copy_workflow_from].blank? && (copy_from = Role.find_by_id(params[:copy_workflow_from])) + if params[:copy_workflow_from].present? && (copy_from = Role.find_by_id(params[:copy_workflow_from])) @role.copy_workflow_rules(copy_from) end flash[:notice] = l(:notice_successful_create) |