Defect #23242 » 0001-adds-attachments-accessor-to-WikiContent-Version.patch
| 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
|
||