Skip to content

Commit

Permalink
デコレーターを呼び出すように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
hikarook94 committed Nov 7, 2022
1 parent 52e51b6 commit d870b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/api/books/_book.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ json.description book.description
json.pageUrl book.page_url
json.coverUrl book.cover_url
json.editBookPath edit_book_path(book)
json.mustRead must_read_for_any_practices?(book)
json.mustRead book.must_read_for_any_practices?

json.practices book.practices, partial: "api/books/practice", as: :practice

0 comments on commit d870b3b

Please sign in to comment.