forked from saurabh/personal-conference
fix show language
This commit is contained in:
parent
e9215925cd
commit
fc95e27412
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue