Use `attr_accessor` for `Answer` object properties

This commit is contained in:
Andreas Nedbal 2024-01-19 21:14:32 +01:00 committed by Andreas Nedbal
parent 1db358e7a1
commit d303b5b18e
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class Answer < ApplicationRecord
extend Answer::TimelineMethods
attr_writer :has_reacted, :is_subscribed
attr_accessor :has_reacted, :is_subscribed
belongs_to :user, counter_cache: :answered_count
belongs_to :question, counter_cache: :answer_count