diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 6 | ||||
-rw-r--r-- | app/models/issue.rb | 2 | ||||
-rw-r--r-- | app/models/issue_query.rb | 2 | ||||
-rw-r--r-- | app/models/mailer.rb | 4 | ||||
-rw-r--r-- | app/models/project_query.rb | 2 | ||||
-rw-r--r-- | app/models/time_entry_query.rb | 2 | ||||
-rw-r--r-- | app/models/user_query.rb | 2 | ||||
-rw-r--r-- | app/models/wiki_page.rb | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ef94688d4..e1b22eb75 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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? diff --git a/app/models/issue.rb b/app/models/issue.rb index 8c8947bac..ac0786d33 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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) diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 9e1e1c432..1e08794dd 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -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 diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 689e31901..c4c7ab07f 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -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 diff --git a/app/models/project_query.rb b/app/models/project_query.rb index 4224c0c37..714136f6f 100644 --- a/app/models/project_query.rb +++ b/app/models/project_query.rb @@ -52,7 +52,7 @@ class ProjectQuery < Query end def initialize(attributes=nil, *args) - super attributes + super(attributes) self.filters ||= {'status' => {:operator => "=", :values => ['1']}} end diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb index b586350ca..28cf11438 100644 --- a/app/models/time_entry_query.rb +++ b/app/models/time_entry_query.rb @@ -40,7 +40,7 @@ class TimeEntryQuery < Query ] def initialize(attributes=nil, *args) - super attributes + super(attributes) self.filters ||= {'spent_on' => {:operator => "*", :values => []}} end diff --git a/app/models/user_query.rb b/app/models/user_query.rb index cd3a5172b..2ee71cc54 100644 --- a/app/models/user_query.rb +++ b/app/models/user_query.rb @@ -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 diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 0ee06673e..ea9d079e8 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -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 |