I want the first four notifications that are unread notifications.where(:read => false)[0,4].map. However, if there are fewer than four notifications that are unread, I want the rest of the four notifications to be filled up by read ones. How do I do this?
(Also, the .where(:read => false) doesn't seem to work.)