for when department is nil

master
Coleman 2008-06-27 01:24:04 -05:00
parent a9083d688d
commit 1c62698fa1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Page < ActiveRecord::Base
protected
def sanitize_department
self.department.gsub!(/[^\w']/, '_').gsub!(/__+/, '_')
self.department.to_s.gsub!(/[^\w']/, '_').gsub!(/__+/, '_')
end
def set_author_id