mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 10:09:08 +01:00
Replace usage of answer
in before_destroy
of Reaction with parent
This commit is contained in:
parent
f9ec11a616
commit
5ba3fed56c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class Appendable::Reaction < Appendable
|
|||
before_destroy do
|
||||
Notification.denotify parent.user, self unless parent.user == user
|
||||
user.decrement! :smiled_count
|
||||
answer.decrement! :smile_count
|
||||
parent.decrement! :smile_count
|
||||
end
|
||||
|
||||
def notification_type(*_args)
|
||||
|
|
Loading…
Reference in a new issue