Skip to content

Commit

Permalink
check name only for Mongoid::Documents classes in Mongoid adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
dem committed Aug 28, 2024
1 parent 5a96d00 commit 06a1bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pickle/adapters/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.except_classes
# Gets a list of the available models for this adapter
def self.model_classes
ObjectSpace.each_object(Class).to_a.select do |klass|
klass.name && klass.ancestors.include?(Mongoid::Document)
klass.ancestors.include?(Mongoid::Document) && klass.name
end
end

Expand Down

0 comments on commit 06a1bcb

Please sign in to comment.