lib/unread_mongoid/base.rb in unread-mongoid-0.0.3 vs lib/unread_mongoid/base.rb in unread-mongoid-0.0.4
- old
+ new
@@ -26,17 +26,9 @@
self.readable_options = options
has_many :read_marks, :as => :readable, :dependent => :destroy
- # :(
- after_save do |doc|
- doc.read_marks.each do |mark|
- mark.readable_timestamp = doc.readable_timestamp
- mark.save!
- end
- end
-
ReadMark.readable_classes ||= []
ReadMark.readable_classes << self unless ReadMark.readable_classes.include?(self)
include Readable::InstanceMethods
extend Readable::ClassMethods