lib/mongoid-history.rb in mongoid-history-0.4.1 vs lib/mongoid-history.rb in mongoid-history-0.4.2
- 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')
-
-Mongoid::History.modifier_class_name = "User"
-Mongoid::History.trackable_class_options = {}
-Mongoid::History.current_user_method ||= :current_user
+require 'easy_diff'
+
+require 'mongoid/history'
+require 'mongoid/history/version'
+require 'mongoid/history/mongoid'
+require 'mongoid/history/tracker'
+require 'mongoid/history/trackable'
+
+Mongoid::History.modifier_class_name = "User"
+Mongoid::History.trackable_class_options = {}
+Mongoid::History.current_user_method ||= :current_user