mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 20:15:59 +01:00
Use attr_accessor
for Answer
object properties
This commit is contained in:
parent
1db358e7a1
commit
d303b5b18e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue