lib/unread_mongoid/readable.rb in unread-mongoid-0.0.3 vs lib/unread_mongoid/readable.rb in unread-mongoid-0.0.4
- old
+ new
@@ -92,13 +92,9 @@
raise RuntimeError, 'There is no class using acts_as_reader!' unless ReadMark.reader_class
end
end
module InstanceMethods
- def readable_timestamp
- self.send(readable_options[:on]).to_s(:db)
- end
-
def unread?(user)
self.class.unread_by(user).and(_id: self._id).exists?
end
def mark_as_read!(options)