Commit c7294dde authored by Alex Braha Stoll's avatar Alex Braha Stoll

Remove WikiPage.add_to_directory

parent bebfba3e
...@@ -190,14 +190,6 @@ class WikiPage ...@@ -190,14 +190,6 @@ class WikiPage
private private
def self.add_to_directory(directory, page)
if directory.present?
directory << page
else
[page]
end
end
def set_attributes def set_attributes
attributes[:slug] = @page.url_path attributes[:slug] = @page.url_path
attributes[:title] = @page.title attributes[:title] = @page.title
......
Markdown is supported
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