diff options
author | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-26 23:52:26 -0200 |
---|---|---|
committer | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-31 16:55:50 -0200 |
commit | 7bd68ae0799a982a4113de3480bef0d51ecb2f1c (patch) | |
tree | 9c50198c0802eb6256ade04e9748bdb1bc287964 /app/models/wiki_directory.rb | |
parent | 84735186a8ae73a722715f286653ccd71e7e48e8 (diff) | |
download | gitlab-ce-7bd68ae0799a982a4113de3480bef0d51ecb2f1c.tar.gz |
Add WikiDirectory#to_partial_path
Diffstat (limited to 'app/models/wiki_directory.rb')
-rw-r--r-- | app/models/wiki_directory.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/wiki_directory.rb b/app/models/wiki_directory.rb index c126a4d0421..561e5a497bc 100644 --- a/app/models/wiki_directory.rb +++ b/app/models/wiki_directory.rb @@ -10,4 +10,10 @@ class WikiDirectory @pages = pages @directories = directories end + + # Relative path to the partial to be used when rendering collections + # of this object. + def to_partial_path + 'projects/wikis/wiki_directory' + end end |