From da39a029c555d3c9ebd8fbdc150b5139ac134ce9 Mon Sep 17 00:00:00 2001 From: manson Date: Wed, 30 Jul 2014 14:20:29 +0800 Subject: [PATCH] Rescue nil for slug_title --- app/models/diploma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/diploma.rb b/app/models/diploma.rb index 82b7d2e..eab8cf6 100644 --- a/app/models/diploma.rb +++ b/app/models/diploma.rb @@ -34,7 +34,7 @@ class Diploma end def slug_title - self.school_name+' '+self.department+' '+self.degree + [self.school_name,self.department,self.degree].join(' ') end protected