fix show language

This commit is contained in:
Harry Bomrah 2016-04-06 14:14:41 +08:00
parent e9215925cd
commit fc95e27412
1 changed files with 2 additions and 2 deletions

View File

@ -168,11 +168,11 @@ class WritingConference
end
value = value.join(" / ")
when "publication_date"
value = self.publication_date.to_date.strftime("%Y-%m-%d") rescue ""
value = self.publication_date.strftime("%Y-%m-%d") rescue ""
when "abstract"
value = nl2br(self.abstract)
when "language"
value = I18n.t(self.language) rescue ""
value = I18n.t(self.language) if !self.language.nil? rescue ""
when "file"
files = []
self.writing_conference_files.each do |conference_files|