DEV: '= true' is not necessary

This commit is contained in:
romanrizzi 2019-12-03 11:31:58 -03:00
parent 98b600f1e1
commit d0bb6314c6

View File

@ -15,7 +15,7 @@ class PostReadersController < ApplicationController
.where.not(topic_users: { last_read_post_number: nil }) .where.not(topic_users: { last_read_post_number: nil })
.where('topic_users.topic_id = ? AND topic_users.last_read_post_number >= ?', post.topic_id, post.post_number) .where('topic_users.topic_id = ? AND topic_users.last_read_post_number >= ?', post.topic_id, post.post_number)
readers = readers.where('admin = true OR moderator = true') if post.whisper? readers = readers.where('admin OR moderator') if post.whisper?
readers = readers.map do |r| readers = readers.map do |r|
{ {