Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

project_badge.rb 262 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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