You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of our projects we've faced issue with the gem, while using validate_uniqueness_of in scope of polymorphic attribute with associated model using AASM. Shoulda engine creates TestModel (via Mutex) that is symlinked to the root one. This doesn't work for models using AASM gem - the state machine definition is missing in cache. This works in Ruby 2.7+ but not 3.0+.
I'm not sure whether this is AASM gem bug or yours, but I found only the Mutex feature that might cause this behaviour and you are the one using it in your code.
The text was updated successfully, but these errors were encountered:
In one of our projects we've faced issue with the gem, while using
validate_uniqueness_of
in scope of polymorphic attribute with associated model using AASM. Shoulda engine creates TestModel (via Mutex) that is symlinked to the root one. This doesn't work for models using AASM gem - the state machine definition is missing in cache. This works in Ruby 2.7+ but not 3.0+.Possible reason: https://bugs.ruby-lang.org/issues/16792
Failing place in AASM: https://github.com/aasm/aasm/blob/master/lib/aasm/persistence/active_record_persistence.rb#L151
I'm not sure whether this is AASM gem bug or yours, but I found only the Mutex feature that might cause this behaviour and you are the one using it in your code.
The text was updated successfully, but these errors were encountered: