Project

General

Profile

Defect #23242 » 0001-adds-attachments-accessor-to-WikiContent-Version.patch

Jens Krämer, 2016-07-05 11:23

View differences:

app/models/wiki_content.rb
page.project
end
def attachments
page.nil? ? [] : page.attachments
end
# Return true if the content is the current page content
def current_version?
page.content.version == self.version
    (1-1/1)