Workaround: rota falha quando nome da pagina wiki contem barras
This commit is contained in:
@@ -44,7 +44,7 @@ class WikiPage < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_param
|
def to_param
|
||||||
self.title
|
self.title['/'].nil? ? self.title : self.id
|
||||||
end
|
end
|
||||||
|
|
||||||
def WikiPage.diff(from, to)
|
def WikiPage.diff(from, to)
|
||||||
|
|||||||
Reference in New Issue
Block a user