nil possible on pdfs

This commit is contained in:
Peter Bhat Harkins 2020-09-10 22:33:14 -05:00
parent b1048fa7c9
commit ecc8b5873b
1 changed files with 1 additions and 1 deletions

View File

@ -780,7 +780,7 @@ class Story < ApplicationRecord
def title=(t)
# change unicode whitespace characters into real spaces
self[:title] = t.strip.gsub(/[\.,;:!]*$/, '')
self[:title] = t.to_s.strip.gsub(/[\.,;:!]*$/, '')
end
def title_as_url