mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 17:56:03 +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
|
||||
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?
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -52,7 +52,7 @@ class ProjectQuery < Query
|
||||
end
|
||||
|
||||
def initialize(attributes=nil, *args)
|
||||
super attributes
|
||||
super(attributes)
|
||||
self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
|
||||
end
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class TimeEntryQuery < Query
|
||||
]
|
||||
|
||||
def initialize(attributes=nil, *args)
|
||||
super attributes
|
||||
super(attributes)
|
||||
self.filters ||= {'spent_on' => {:operator => "*", :values => []}}
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -145,7 +145,7 @@ module ActionView
|
||||
if (Array(values) & [:xml, :json]).any?
|
||||
values << :api
|
||||
end
|
||||
super values
|
||||
super(values)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
@@ -57,7 +57,7 @@ module Redmine
|
||||
field
|
||||
end
|
||||
end
|
||||
super row
|
||||
super(row)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user