mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
appease the paw patrol
This commit is contained in:
parent
8a26232fe6
commit
a85ce45b25
1 changed files with 3 additions and 3 deletions
|
@ -14,16 +14,16 @@ class Inbox < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
after_create do
|
after_create do
|
||||||
user.touch(:inbox_updated_at)
|
user.touch(:inbox_updated_at) # rubocop:disable Rails/SkipsModelValidations
|
||||||
end
|
end
|
||||||
|
|
||||||
after_update do
|
after_update do
|
||||||
user.touch(:inbox_updated_at)
|
user.touch(:inbox_updated_at) # rubocop:disable Rails/SkipsModelValidations
|
||||||
end
|
end
|
||||||
|
|
||||||
after_destroy do
|
after_destroy do
|
||||||
# user might not exist at this point (account deleted, records are cleaned up async)
|
# user might not exist at this point (account deleted, records are cleaned up async)
|
||||||
user&.touch(:inbox_updated_at)
|
user&.touch(:inbox_updated_at) # rubocop:disable Rails/SkipsModelValidations
|
||||||
end
|
end
|
||||||
|
|
||||||
def answer(answer_content, user)
|
def answer(answer_content, user)
|
||||||
|
|
Loading…
Reference in a new issue