We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issue appear after changing the class name, let's say
class Documents include Mongoid::Document auto_increment :sequence store_in collection: 'document' end
here the seq_name = 'documents'
seq_name = 'documents'
class Document include Mongoid::Document auto_increment :sequence store_in collection: 'document' end
but here the seq_name = 'document'
seq_name = 'document'
mongoid_auto_increment/lib/mongoid_auto_increment.rb
Line 15 in 350e93b
seq_name = options[:name] || "#{self.collection.name.downcase}_#{name}"
this will break backward compatibility
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Caused by
The issue appear after changing the class name, let's say
here the
seq_name = 'documents'
but here the
seq_name = 'document'
Solution
mongoid_auto_increment/lib/mongoid_auto_increment.rb
Line 15 in 350e93b
to
Note
The text was updated successfully, but these errors were encountered: