Remove WikiPage.add_to_directory
This commit is contained in:
parent
bebfba3e6d
commit
c7294dded2
|
|
@ -190,14 +190,6 @@ class WikiPage
|
|||
|
||||
private
|
||||
|
||||
def self.add_to_directory(directory, page)
|
||||
if directory.present?
|
||||
directory << page
|
||||
else
|
||||
[page]
|
||||
end
|
||||
end
|
||||
|
||||
def set_attributes
|
||||
attributes[:slug] = @page.url_path
|
||||
attributes[:title] = @page.title
|
||||
|
|
|
|||
Loading…
Reference in New Issue