Compare commits
1 Commits
master
...
revert-91f
Author | SHA1 | Date |
---|---|---|
wmcheng | ed8a0832d6 |
|
@ -164,8 +164,7 @@ class Book
|
||||||
end
|
end
|
||||||
value = value.join(" / ")
|
value = value.join(" / ")
|
||||||
when "language"
|
when "language"
|
||||||
value = I18n.t(self.language) if !self.language.nil? rescue ""
|
value = I18n.t("personal_book.#{self.language}") if !self.language.nil? rescue ""
|
||||||
# value = I18n.t("personal_book.#{self.language}") if !self.language.nil? rescue ""
|
|
||||||
when "publish_date", "publication_date"
|
when "publish_date", "publication_date"
|
||||||
value = self.send(field).to_date.strftime("%Y-%m-%d") rescue nil
|
value = self.send(field).to_date.strftime("%Y-%m-%d") rescue nil
|
||||||
when "file"
|
when "file"
|
||||||
|
|
Loading…
Reference in New Issue