[Chore] Add bullet gem #249 (#281)

* closes #249 add bullet gem

- upgrade gems
- fix the warning in the console
- fix the deprecation message for where not
This commit is contained in:
Sojan Jose
2019-11-25 23:55:18 +05:30
committed by GitHub
parent 34df451243
commit 9c6a101768
6 changed files with 173 additions and 178 deletions

View File

@@ -10,7 +10,7 @@ class Message < ApplicationRecord
# .succ is a hack to avoid https://makandracards.com/makandra/1057-why-two-ruby-time-objects-are-not-equal-although-they-appear-to-be
scope :unread_since, ->(datetime) { where('EXTRACT(EPOCH FROM created_at) > (?)', datetime.to_i.succ) }
scope :chat, -> { where.not(message_type: :activity, private: true) }
scope :chat, -> { where.not(message_type: :activity).where.not(private: true) }
default_scope { order(created_at: :asc) }
belongs_to :account