spec/dummy/app/models/chat_message.rb in introspective_grape-0.3.2 vs spec/dummy/app/models/chat_message.rb in introspective_grape-0.3.3
- old
+ new
@@ -29,6 +29,6 @@
# presumably much more efficient ways to run an intersecton, we want to find the last
# exact match with the users being messaged to append to the existing chat.
Chat.eager_load(:chat_users).where("chat_users.departed_at IS NULL").order('chats.created_at desc').detect {|c| c.chat_users.map(&:user_id).uniq.sort == users.map(&:id).sort }
end
-end
+end