aasm icon indicating copy to clipboard operation
aasm copied to clipboard

AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)

Results 137 aasm issues
Sort by recently updated
recently updated
newest added

### **Context:** A class contains two state machines that have conflicting state names and they are both using timestamps. At least one is using a namespace. ### **Actual behavior:** The...

**Describe the bug** timestamps option not being picked up. **To Reproduce** Steps to reproduce the behavior: 1. Have a state with a timestamp column named appropriately (in my case `deliver`...

Method override warnings were remade in 4.10.0 and brought some painful experience: ``` MySchema: overriding method 'active?'! MySchema: overriding method 'subscribe'! MySchema: overriding method 'unsubscribe'! MySchema: overriding method 'activate'! MySchema:...

Why do we not consistently cast `to_state` to a symbol when checking if it is included in the `transition.to`? * https://github.com/aasm/aasm/blob/ee147c60bc4ba356e0e8ce0ffa3f69d0476f8ce8/lib/aasm/core/event.rb#L140 * https://github.com/aasm/aasm/blob/ee147c60bc4ba356e0e8ce0ffa3f69d0476f8ce8/lib/aasm/core/event.rb#L149

**Describe the bug** After commit events are not triggered on DynamoDB **To Reproduce** Steps to reproduce the behavior: On a model with DynamoDB, set up aasm like this: ``` aasm...

**Describe the solution you'd like** Besides running an event and resetting the model, it would be useful to be able to execute an event and see the resulting state without...

``` event :run, after: :notify_somebody do transitions from: :sleeping, to: :running, after: :notifi_somebody_else ``` Actual behaviour: Record in `notify_somebody` method is in `running` state, but `notifi_somebody_else` is triggered when record...

**Is your feature request related to a problem? Please describe.** I wasn't aware that the events with bangs didn't raise an error when validation fails. This is unconsistent with ActiveRecord...

I am having an issue on a legacy project with an existing column. Data migration is not an option. It has value with `-` in that case AASM won't work,...