Commit c2503279 authored by jplang's avatar jplang

Adds attachments accessor to WikiContent::Version (#23242).

Patch by Jens Kraemer.

git-svn-id: https://svn.redmine.org/redmine/trunk@15610 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b04d6c63
......@@ -118,6 +118,10 @@ class WikiContent < ActiveRecord::Base
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment