lib/rocket_job/extensions/mongoid/contextual/mongo.rb in rocketjob-6.0.0.rc1 vs lib/rocket_job/extensions/mongoid/contextual/mongo.rb in rocketjob-6.0.0.rc2

- old
+ new

@@ -2,11 +2,11 @@ module Mongoid module Contextual class Mongo def initialize(criteria) @criteria = criteria - @klass = criteria.klass - @cache = criteria.options[:cache] + @klass = criteria.klass + @cache = criteria.options[:cache] # Only line changed is here, get collection name from criteria, not @klass # @collection = @klass.collection @collection = criteria.collection criteria.send(:merge_type_selection)