Skip to content

Commit

Permalink
Merge pull request #7993 from fjordllc/feature/add-reactions-to-portf…
Browse files Browse the repository at this point in the history
…olio-page

作品個別にリアクション機能がほしい
  • Loading branch information
komagata authored Sep 4, 2024
2 parents d59d373 + 87da313 commit da6afac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/work.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

class Work < ApplicationRecord
include Reactionable

THUMBNAIL_SIZE = [1200, 630].freeze
belongs_to :user
has_one_attached :thumbnail
Expand Down
2 changes: 2 additions & 0 deletions app/views/works/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ hr.a-border
.card__description
.a-long-text.is-md.js-markdown-view
= @work.description
hr.a-border-tint
= render 'reactions/reactions', reactionable: @work
hr.a-border-tint
.card-footer
.card-main-actions
Expand Down

0 comments on commit da6afac

Please sign in to comment.