lib/mongoid-history.rb in mongoid-history-0.1.4 vs lib/mongoid-history.rb in mongoid-history-0.1.5
- old
+ new
@@ -1,9 +1,11 @@
require 'easy_diff'
require File.expand_path(File.dirname(__FILE__) + '/mongoid/history')
require File.expand_path(File.dirname(__FILE__) + '/mongoid/history/tracker')
require File.expand_path(File.dirname(__FILE__) + '/mongoid/history/trackable')
+require File.expand_path(File.dirname(__FILE__) + '/mongoid/history/sweeper')
Mongoid::History.modifier_class_name = "User"
Mongoid::History.trackable_classes = []
Mongoid::History.trackable_class_options = {}
+Mongoid::History.current_user_method ||= :current_user