Fix RuboCop offense Lint/SendWithMixinArgument (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22980 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-08-24 05:40:20 +00:00
parent 1daa6937ac
commit 6cc799ac29
2 changed files with 2 additions and 7 deletions

View File

@@ -231,11 +231,6 @@ Lint/ParenthesesAsGroupedExpression:
- 'test/unit/attachment_test.rb'
- 'test/unit/lib/redmine/export/pdf_test.rb'
# This cop supports safe autocorrection (--autocorrect).
Lint/SendWithMixinArgument:
Exclude:
- 'test/object_helpers.rb'
Lint/ShadowingOuterLocalVariable:
Enabled: false

View File

@@ -288,7 +288,7 @@ module TrackerObjectHelpers
end
end
end
Tracker.send :include, TrackerObjectHelpers
Tracker.include TrackerObjectHelpers
module IssueObjectHelpers
def close!
@@ -300,4 +300,4 @@ module IssueObjectHelpers
Issue.generate!(attributes.merge(:parent_issue_id => self.id))
end
end
Issue.send :include, IssueObjectHelpers
Issue.include IssueObjectHelpers