Fix RuboCop offense Style/SuperArguments (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22842 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-05-23 11:25:16 +00:00
parent 107fe074b2
commit b42d7984b1
11 changed files with 13 additions and 13 deletions

View File

@@ -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
end
# Overrides Rails' javascript_include_tag with plugins support

View File

@@ -53,7 +53,7 @@ class Mailer < ActionMailer::Base
lang ||= Setting.default_language
set_language_if_valid(lang)
super(action, *args)
super
ensure
User.current = initial_user
::I18n.locale = initial_language
@@ -714,7 +714,7 @@ class Mailer < ActionMailer::Base
end
if block
super(headers, &block)
super
else
super(headers) do |format|
format.text

View File

@@ -902,7 +902,7 @@ class Project < ApplicationRecord
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
end
super(attrs, user)
super
end
# Returns an auto-generated project identifier based on the last identifier used

View File

@@ -28,6 +28,6 @@ class ProjectCustomField < CustomField
def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
project_key ||= "#{Project.table_name}.id"
super(project_key, user, id_column)
super
end
end

View File

@@ -204,7 +204,7 @@ class Repository::Cvs < Repository
# Overrides Repository#validate_repository_path to validate
# against root_url attribute.
def validate_repository_path(attribute=:root_url)
super(attribute)
super
end
private

View File

@@ -187,7 +187,7 @@ class Version < ApplicationRecord
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
end
super(attrs, user)
super
end
# Returns true if +user+ or current user is allowed to view the version

View File

@@ -108,7 +108,7 @@ class WikiPage < ApplicationRecord
end
end
super(attrs, user)
super
end
# Manages redirects if page is renamed or moved
@@ -210,7 +210,7 @@ class WikiPage < ApplicationRecord
end
def attachments_deletable?(usr=User.current)
editable_by?(usr) && super(usr)
editable_by?(usr) && super
end
def parent_title

View File

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

View File

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

View File

@@ -57,7 +57,7 @@ module Redmine
style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
# DejaVuSansMono Italic Arabic font has problem
style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0
super(family, style, size, fontfile)
super
end
alias_method :set_font, :SetFont

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 = @text.delete "\r"
end