diff options
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index 7213efde8..b6d6a9b50 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -48,7 +48,7 @@ class Wiki < ActiveRecord::Base # replace spaces with _ and remove unwanted caracters title = title.gsub(/\s+/, '_').delete(',./?;|:') if title # upcase the first letter - title = (title.length > 1 ? title.first.upcase + title[1..-1] : title.upcase) if title + title = (title.slice(0..0).upcase + (title.slice(1..-1) || '')) if title title end end |