simplified WikiWords.separate
This commit is contained in:
parent
befa8c91b2
commit
75b6d30d80
2 changed files with 13 additions and 16 deletions
|
@ -67,7 +67,7 @@ class Page
|
|||
|
||||
# Returns the original wiki-word name as separate words, so "MyPage" becomes "My Page".
|
||||
def plain_name
|
||||
WikiWords.separate(name, web.brackets_only)
|
||||
web.brackets_only ? name : WikiWords.separate(name)
|
||||
end
|
||||
|
||||
def link(options = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue