spec/timespan/mongoid/spec_helper.rb in timespan-0.5.0 vs spec/timespan/mongoid/spec_helper.rb in timespan-0.5.1
- old
+ new
@@ -26,6 +26,8 @@
end
end
require 'timespan/mongoid'
-require "timespan/mongoid/models/account_#{Mongoid::MAJOR_VERSION}x"
+def load_models!
+ require "timespan/mongoid/models/account_#{Mongoid::MAJOR_VERSION}x"
+end
\ No newline at end of file