gitlab-org--gitlab-foss/app/models/badges/project_badge.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
293 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-03-05 12:51:40 -05:00
class ProjectBadge < Badge
belongs_to :project
validates :project, presence: true
def rendered_link_url(project = nil)
project ||= self.project
super
end
def rendered_image_url(project = nil)
project ||= self.project
super
end
end