0001-adds-attachments-accessor-to-WikiContent-Version.patch

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

Download (760 Bytes)

View differences:

app/models/wiki_content.rb
118 118
      page.project
119 119
    end
120 120

  
121
    def attachments
122
      page.nil? ? [] : page.attachments
123
    end
124

  
121 125
    # Return true if the content is the current page content
122 126
    def current_version?
123 127
      page.content.version == self.version
124
-