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
.empty?
nil
aasm_ensure_initial_state
Describe the bug Since the commit 1c5117, and starting with AASM version 5.0.5, AASM is no more compatible with Mongoid aliased fields.
You can find a code example from #535 which makes AASM breaking with :
NoMethodError: undefined method `empty?' for nil:NilClass # /usr/local/bundle/gems/aasm-5.0.5/lib/aasm/persistence/mongoid_persistence.rb:109:in `block in aasm_ensure_initial_state' # /usr/local/bundle/gems/aasm-5.0.5/lib/aasm/persistence/mongoid_persistence.rb:103:in `each' # /usr/local/bundle/gems/aasm-5.0.5/lib/aasm/persistence/mongoid_persistence.rb:103:in `aasm_ensure_initial_state' # /usr/local/bundle/gems/mongoid-7.5.1/lib/mongoid/interceptable.rb:122:in `run_callbacks' # /usr/local/bundle/gems/mongoid-7.5.1/lib/mongoid/document.rb:116:in `block in initialize' # ...
To Reproduce Steps to reproduce the behavior:
.new
Expected behavior The model initialization should work without any errors.
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Since the commit 1c5117, and starting with AASM version 5.0.5, AASM is no more compatible with Mongoid aliased fields.
You can find a code example from #535 which makes AASM breaking with :
To Reproduce
Steps to reproduce the behavior:
.new
on itExpected behavior
The model initialization should work without any errors.
The text was updated successfully, but these errors were encountered: