mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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:
@@ -1675,7 +1675,7 @@ module ApplicationHelper
|
|||||||
source
|
source
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super *sources, options
|
super(*sources, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overrides Rails' image_tag with themes and plugins support.
|
# Overrides Rails' image_tag with themes and plugins support.
|
||||||
@@ -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(source, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overrides Rails' javascript_include_tag with plugins support
|
# Overrides Rails' javascript_include_tag with plugins support
|
||||||
@@ -1708,7 +1708,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super *sources, options
|
super(*sources, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def sidebar_content?
|
def sidebar_content?
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ class Issue < ActiveRecord::Base
|
|||||||
send "#{attr}=", attrs.delete(attr)
|
send "#{attr}=", attrs.delete(attr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super attrs, *args
|
super(attrs, *args)
|
||||||
end
|
end
|
||||||
|
|
||||||
def attributes=(new_attributes)
|
def attributes=(new_attributes)
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class IssueQuery < Query
|
|||||||
end
|
end
|
||||||
|
|
||||||
def initialize(attributes=nil, *args)
|
def initialize(attributes=nil, *args)
|
||||||
super attributes
|
super(attributes)
|
||||||
self.filters ||= {'status_id' => {:operator => "o", :values => [""]}}
|
self.filters ||= {'status_id' => {:operator => "o", :values => [""]}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -714,9 +714,9 @@ class Mailer < ActionMailer::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if block
|
if block
|
||||||
super headers, &block
|
super(headers, &block)
|
||||||
else
|
else
|
||||||
super headers do |format|
|
super(headers) do |format|
|
||||||
format.text
|
format.text
|
||||||
format.html unless Setting.plain_text_mail?
|
format.html unless Setting.plain_text_mail?
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class ProjectQuery < Query
|
|||||||
end
|
end
|
||||||
|
|
||||||
def initialize(attributes=nil, *args)
|
def initialize(attributes=nil, *args)
|
||||||
super attributes
|
super(attributes)
|
||||||
self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
|
self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class TimeEntryQuery < Query
|
|||||||
]
|
]
|
||||||
|
|
||||||
def initialize(attributes=nil, *args)
|
def initialize(attributes=nil, *args)
|
||||||
super attributes
|
super(attributes)
|
||||||
self.filters ||= {'spent_on' => {:operator => "*", :values => []}}
|
self.filters ||= {'spent_on' => {:operator => "*", :values => []}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class UserQuery < Query
|
|||||||
]
|
]
|
||||||
|
|
||||||
def initialize(attributes=nil, *args)
|
def initialize(attributes=nil, *args)
|
||||||
super attributes
|
super(attributes)
|
||||||
self.filters ||= { 'status' => {operator: "=", values: [User::STATUS_ACTIVE]} }
|
self.filters ||= { 'status' => {operator: "=", values: [User::STATUS_ACTIVE]} }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class WikiPage < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
super attrs, user
|
super(attrs, user)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Manages redirects if page is renamed or moved
|
# Manages redirects if page is renamed or moved
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ module ActionView
|
|||||||
if (Array(values) & [:xml, :json]).any?
|
if (Array(values) & [:xml, :json]).any?
|
||||||
values << :api
|
values << :api
|
||||||
end
|
end
|
||||||
super values
|
super(values)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module Redmine
|
|||||||
field
|
field
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super row
|
super(row)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ module Redmine
|
|||||||
@parent = options[:parent]
|
@parent = options[:parent]
|
||||||
@child_menus = options[:children]
|
@child_menus = options[:children]
|
||||||
@last = options[:last] || false
|
@last = options[:last] || false
|
||||||
super @name.to_sym
|
super(@name.to_sym)
|
||||||
end
|
end
|
||||||
|
|
||||||
def caption(project=nil)
|
def caption(project=nil)
|
||||||
|
|||||||
@@ -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, context, result)
|
||||||
@text = @text.delete "\r"
|
@text = @text.delete "\r"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -489,7 +489,7 @@ module Redmine
|
|||||||
|
|
||||||
API_FORMATS.each do |format|
|
API_FORMATS.each do |format|
|
||||||
format_request = request.sub /$/, ".#{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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user