DEV: Block accidental serialization of entire AR models (#27668)

This commit is contained in:
Jan Cernik
2024-07-01 17:08:48 -03:00
committed by GitHub
parent 1ae902fa60
commit 6599b85a75
19 changed files with 98 additions and 45 deletions

View File

@ -1410,7 +1410,7 @@ RSpec.describe TopicQuery do
end
def read(user, topic, post_number)
TopicUser.update_last_read(user, topic, post_number, post_number, 10_000)
TopicUser.update_last_read(user, topic.id, post_number, post_number, 10_000)
end
before do