mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user