@@ -118,6 +118,10 class WikiContent < ActiveRecord::Base | |||||
118 | page.project |
|
118 | page.project | |
119 | end |
|
119 | end | |
120 |
|
120 | |||
|
121 | def attachments | |||
|
122 | page.nil? ? [] : page.attachments | |||
|
123 | end | |||
|
124 | ||||
121 | # Return true if the content is the current page content |
|
125 | # Return true if the content is the current page content | |
122 | def current_version? |
|
126 | def current_version? | |
123 | page.content.version == self.version |
|
127 | page.content.version == self.version |
General Comments 0
You need to be logged in to leave comments.
Login now