-
Wondering if this is a known issue - happy to dig in more!
# Problem
Discovered this when we were upgrading aasm from 4.0.8 to 4.12.3 (which allows for multiple state machines in a class).
Sa…
-
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 Mu…
-
**Describe the bug**
> Multiple state machines callback was not Isolated when even name same.
```ruby
class SimpleMultipleExample
include AASM
aasm(:move, column: 'move_state', namespace:…
-
I was looking at StateMachines gem to manage this behavior: https://github.com/state-machines/state_machines#static--dynamic-definitions
It is very old and not maintained.
Is it possible to man…
-
**Describe the bug**
In a ActiveRecord transaction a transition is changed from object x.
When the transaction gets an Error because of concurrency from the Database, then Rails try to retry the tra…
Piioo updated
3 years ago
-
Events defined like this:
```ruby
event :foo do
transition to: :bar, after: -> {
puts "event: #{aasm.current_event} | #{aasm.from_state} -> #{aasm.to_state}"
}
end
```
will result in e…
iarie updated
6 years ago
-
Discussion for Transition Status
-
My trade.rb
```
class Trade < ApplicationRecord
include TranslateEnum
include AASM
...
aasm column: :status, enum: true do
state :bidding_declared, initial: true
state :applica…
-
I put some sample code at https://github.com/ivantsepp/aasm_graph/blob/master/bin/aasm_graph. This is how you would use it (if you clone it down, you should be able to run the following):
```
./bin/a…
-
**Describe the bug**
Can't pass an empty hash as callback parameters to `transition_from` since 5.5.0
**To Reproduce**
Reproduce script is here.
```ruby
# frozen_string_literal: true
#…