mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
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:
@@ -1689,7 +1689,7 @@ module ApplicationHelper
|
|||||||
elsif current_theme && current_theme.images.include?(source)
|
elsif current_theme && current_theme.images.include?(source)
|
||||||
source = current_theme.image_path(source)
|
source = current_theme.image_path(source)
|
||||||
end
|
end
|
||||||
super(source, options)
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overrides Rails' javascript_include_tag with plugins support
|
# Overrides Rails' javascript_include_tag with plugins support
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class Mailer < ActionMailer::Base
|
|||||||
lang ||= Setting.default_language
|
lang ||= Setting.default_language
|
||||||
set_language_if_valid(lang)
|
set_language_if_valid(lang)
|
||||||
|
|
||||||
super(action, *args)
|
super
|
||||||
ensure
|
ensure
|
||||||
User.current = initial_user
|
User.current = initial_user
|
||||||
::I18n.locale = initial_language
|
::I18n.locale = initial_language
|
||||||
@@ -714,7 +714,7 @@ class Mailer < ActionMailer::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if block
|
if block
|
||||||
super(headers, &block)
|
super
|
||||||
else
|
else
|
||||||
super(headers) do |format|
|
super(headers) do |format|
|
||||||
format.text
|
format.text
|
||||||
|
|||||||
@@ -902,7 +902,7 @@ class Project < ApplicationRecord
|
|||||||
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
|
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
|
||||||
end
|
end
|
||||||
|
|
||||||
super(attrs, user)
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns an auto-generated project identifier based on the last identifier used
|
# Returns an auto-generated project identifier based on the last identifier used
|
||||||
|
|||||||
@@ -28,6 +28,6 @@ class ProjectCustomField < CustomField
|
|||||||
|
|
||||||
def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
|
def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
|
||||||
project_key ||= "#{Project.table_name}.id"
|
project_key ||= "#{Project.table_name}.id"
|
||||||
super(project_key, user, id_column)
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class Repository::Cvs < Repository
|
|||||||
# Overrides Repository#validate_repository_path to validate
|
# Overrides Repository#validate_repository_path to validate
|
||||||
# against root_url attribute.
|
# against root_url attribute.
|
||||||
def validate_repository_path(attribute=:root_url)
|
def validate_repository_path(attribute=:root_url)
|
||||||
super(attribute)
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ class Version < ApplicationRecord
|
|||||||
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
|
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
|
||||||
end
|
end
|
||||||
|
|
||||||
super(attrs, user)
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns true if +user+ or current user is allowed to view the version
|
# Returns true if +user+ or current user is allowed to view the version
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class WikiPage < ApplicationRecord
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
super(attrs, user)
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
# Manages redirects if page is renamed or moved
|
# Manages redirects if page is renamed or moved
|
||||||
@@ -210,7 +210,7 @@ class WikiPage < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def attachments_deletable?(usr=User.current)
|
def attachments_deletable?(usr=User.current)
|
||||||
editable_by?(usr) && super(usr)
|
editable_by?(usr) && super
|
||||||
end
|
end
|
||||||
|
|
||||||
def parent_title
|
def parent_title
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ module ActionView
|
|||||||
if (Array(values) & [:xml, :json]).any?
|
if (Array(values) & [:xml, :json]).any?
|
||||||
values << :api
|
values << :api
|
||||||
end
|
end
|
||||||
super(values)
|
super
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module Redmine
|
|||||||
field
|
field
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super(row)
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module Redmine
|
|||||||
style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
|
style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
|
||||||
# DejaVuSansMono Italic Arabic font has problem
|
# DejaVuSansMono Italic Arabic font has problem
|
||||||
style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0
|
style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0
|
||||||
super(family, style, size, fontfile)
|
super
|
||||||
end
|
end
|
||||||
alias_method :set_font, :SetFont
|
alias_method :set_font, :SetFont
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ module Redmine
|
|||||||
# options
|
# options
|
||||||
class MarkdownFilter < HTML::Pipeline::TextFilter
|
class MarkdownFilter < HTML::Pipeline::TextFilter
|
||||||
def initialize(text, context = nil, result = nil)
|
def initialize(text, context = nil, result = nil)
|
||||||
super(text, context, result)
|
super
|
||||||
@text = @text.delete "\r"
|
@text = @text.delete "\r"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user