Fix RuboCop offense Style/SuperWithArgsParentheses (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-12-20 07:15:11 +00:00
parent b552720590
commit c51e4937e7
13 changed files with 16 additions and 16 deletions

View File

@@ -1675,7 +1675,7 @@ module ApplicationHelper
source
end
end
super *sources, options
super(*sources, options)
end
# Overrides Rails' image_tag with themes and plugins support.
@@ -1689,7 +1689,7 @@ module ApplicationHelper
elsif current_theme && current_theme.images.include?(source)
source = current_theme.image_path(source)
end
super source, options
super(source, options)
end
# Overrides Rails' javascript_include_tag with plugins support
@@ -1708,7 +1708,7 @@ module ApplicationHelper
end
end
end
super *sources, options
super(*sources, options)
end
def sidebar_content?

View File

@@ -475,7 +475,7 @@ class Issue < ActiveRecord::Base
send "#{attr}=", attrs.delete(attr)
end
end
super attrs, *args
super(attrs, *args)
end
def attributes=(new_attributes)

View File

@@ -97,7 +97,7 @@ class IssueQuery < Query
end
def initialize(attributes=nil, *args)
super attributes
super(attributes)
self.filters ||= {'status_id' => {:operator => "o", :values => [""]}}
end

View File

@@ -714,9 +714,9 @@ class Mailer < ActionMailer::Base
end
if block
super headers, &block
super(headers, &block)
else
super headers do |format|
super(headers) do |format|
format.text
format.html unless Setting.plain_text_mail?
end

View File

@@ -52,7 +52,7 @@ class ProjectQuery < Query
end
def initialize(attributes=nil, *args)
super attributes
super(attributes)
self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
end

View File

@@ -40,7 +40,7 @@ class TimeEntryQuery < Query
]
def initialize(attributes=nil, *args)
super attributes
super(attributes)
self.filters ||= {'spent_on' => {:operator => "*", :values => []}}
end

View File

@@ -34,7 +34,7 @@ class UserQuery < Query
]
def initialize(attributes=nil, *args)
super attributes
super(attributes)
self.filters ||= { 'status' => {operator: "=", values: [User::STATUS_ACTIVE]} }
end

View File

@@ -108,7 +108,7 @@ class WikiPage < ActiveRecord::Base
end
end
super attrs, user
super(attrs, user)
end
# Manages redirects if page is renamed or moved

View File

@@ -145,7 +145,7 @@ module ActionView
if (Array(values) & [:xml, :json]).any?
values << :api
end
super values
super(values)
end
end)
end

View File

@@ -57,7 +57,7 @@ module Redmine
field
end
end
super row
super(row)
end
end
end

View File

@@ -453,7 +453,7 @@ module Redmine
@parent = options[:parent]
@child_menus = options[:children]
@last = options[:last] || false
super @name.to_sym
super(@name.to_sym)
end
def caption(project=nil)

View File

@@ -27,7 +27,7 @@ module Redmine
# options
class MarkdownFilter < HTML::Pipeline::TextFilter
def initialize(text, context = nil, result = nil)
super text, context, result
super(text, context, result)
@text = @text.delete "\r"
end

View File

@@ -489,7 +489,7 @@ module Redmine
API_FORMATS.each do |format|
format_request = request.sub /$/, ".#{format}"
super options.merge(format_request => arg[request], :format => format)
super(options.merge(format_request => arg[request], :format => format))
end
end
end