diff options
Diffstat (limited to 'app/models/wiki_content.rb')
-rw-r--r-- | app/models/wiki_content.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb index f81aa9e78..1f0eb9a62 100644 --- a/app/models/wiki_content.rb +++ b/app/models/wiki_content.rb @@ -34,6 +34,10 @@ class WikiContent < ActiveRecord::Base page.project end + def attachments + page.nil? ? [] : page.attachments + end + # Returns the mail adresses of users that should be notified def recipients notified = project.notified_users |