mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-27 14:01:46 +00:00
Adds attachments accessor to WikiContent::Version (#23242).
Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15610 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f416657d56
commit
027fe7bb66
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user