Commit c2503279 authored by jplang's avatar jplang
Browse files

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

Patch by Jens Kraemer.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b04d6c63
......@@ -118,6 +118,10 @@ class WikiContent < ActiveRecord::Base
def attachments
page.nil? ? [] : page.attachments
# Return true if the content is the current page content
def current_version?
page.content.version == self.version
Supports Markdown
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