Update personal_books_controller.rb

This commit is contained in:
chiu 2019-08-14 15:17:48 +08:00
parent 7f5e34934f
commit c6058905fa
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class PersonalBooksController < ApplicationController
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.create_link}</a>"}
end
when "publish_date", "publication_date"
t << {"value" => book.publication_date.strftime("%Y/%m/%d")}
t << {"value" => "book.publication_date.strftime('%Y/%m/%d')"}
when "author_type"
t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
when "language"