elsif current_theme && current_theme.images.include?(source)
source = current_theme.image_path(source)
end
- super(source, options)
+ super
end
# Overrides Rails' javascript_include_tag with plugins support
lang ||= Setting.default_language
set_language_if_valid(lang)
- super(action, *args)
+ super
ensure
User.current = initial_user
::I18n.locale = initial_language
end
if block
- super(headers, &block)
+ super
else
super(headers) do |format|
format.text
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
end
- super(attrs, user)
+ super
end
# Returns an auto-generated project identifier based on the last identifier used
def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
project_key ||= "#{Project.table_name}.id"
- super(project_key, user, id_column)
+ super
end
end
# Overrides Repository#validate_repository_path to validate
# against root_url attribute.
def validate_repository_path(attribute=:root_url)
- super(attribute)
+ super
end
private
attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
end
- super(attrs, user)
+ super
end
# Returns true if +user+ or current user is allowed to view the version
end
end
- super(attrs, user)
+ super
end
# Manages redirects if page is renamed or moved
end
def attachments_deletable?(usr=User.current)
- editable_by?(usr) && super(usr)
+ editable_by?(usr) && super
end
def parent_title
if (Array(values) & [:xml, :json]).any?
values << :api
end
- super(values)
+ super
end
end)
end
field
end
end
- super(row)
+ super
end
end
end
style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
# DejaVuSansMono Italic Arabic font has problem
style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0
- super(family, style, size, fontfile)
+ super
end
alias_method :set_font, :SetFont
# options
class MarkdownFilter < HTML::Pipeline::TextFilter
def initialize(text, context = nil, result = nil)
- super(text, context, result)
+ super
@text = @text.delete "\r"
end