summaryrefslogtreecommitdiff
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-26 23:51:34 -0200
committerAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-31 16:55:50 -0200
commit84735186a8ae73a722715f286653ccd71e7e48e8 (patch)
tree3b6e1c4198ebd011c3a4d74fbdcba21cfcb6ad1c /app/models/wiki_page.rb
parentc8a1e9682656b6b3ec714e38459e089df2ee106c (diff)
downloadgitlab-ce-84735186a8ae73a722715f286653ccd71e7e48e8.tar.gz
Add WikiPage#to_partial_path
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 63e5aa0e519..96d03d510ff 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -207,6 +207,12 @@ class WikiPage
end
end
+ # Relative path to the partial to be used when rendering collections
+ # of this object.
+ def to_partial_path
+ 'projects/wikis/wiki_page'
+ end
+
private
def set_attributes