source
end
end
- super *sources, options
+ super(*sources, options)
end
# Overrides Rails' image_tag with themes and plugins support.
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
end
end
end
- super *sources, options
+ super(*sources, options)
end
def sidebar_content?
send "#{attr}=", attrs.delete(attr)
end
end
- super attrs, *args
+ super(attrs, *args)
end
def attributes=(new_attributes)
end
def initialize(attributes=nil, *args)
- super attributes
+ super(attributes)
self.filters ||= {'status_id' => {:operator => "o", :values => [""]}}
end
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
end
def initialize(attributes=nil, *args)
- super attributes
+ super(attributes)
self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
end
]
def initialize(attributes=nil, *args)
- super attributes
+ super(attributes)
self.filters ||= {'spent_on' => {:operator => "*", :values => []}}
end
]
def initialize(attributes=nil, *args)
- super attributes
+ super(attributes)
self.filters ||= { 'status' => {operator: "=", values: [User::STATUS_ACTIVE]} }
end
end
end
- super attrs, user
+ super(attrs, user)
end
# Manages redirects if page is renamed or moved
if (Array(values) & [:xml, :json]).any?
values << :api
end
- super values
+ super(values)
end
end)
end
field
end
end
- super row
+ super(row)
end
end
end
@parent = options[:parent]
@child_menus = options[:children]
@last = options[:last] || false
- super @name.to_sym
+ super(@name.to_sym)
end
def caption(project=nil)
# 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
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