Skip to content

Commit

Permalink
Re-add accessors for singular answer cases
Browse files Browse the repository at this point in the history
Otherwise rendering fails
  • Loading branch information
pixeldesu committed Mar 19, 2024
1 parent 25cbb96 commit b160fa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/answer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class Answer < ApplicationRecord
extend Answer::TimelineMethods

attr_accessor :has_reacted, :is_subscribed

belongs_to :user, counter_cache: :answered_count
belongs_to :question, counter_cache: :answer_count
has_many :comments, dependent: :destroy
Expand Down

0 comments on commit b160fa2

Please sign in to comment.