-
Getting this error:
```
wrong number of arguments (given 2, expected 1)
```
When executing an event, when using active record boolean check method as guard.
For example, i have `boolean` fiel…
-
Dear all,
Don't panic, this is feature request :)
I wonder if AASM can allow model to define methods in the `state` clause, like the way `state_machine` gem did:
``` ruby
class Car
include AASM
…
-
For initial state, it is marked as :initial => true. How to check if the current_state of @my_instance is initial state?
-
Using the Job example:
```
class Job
include AASM
aasm do
state :initial, :initial => true
state :finished
event :finish do
transitions from: :initial, to: :finis…
-
I'm working on upgrading an application from Rails 5.2 to latest.
Currently running:
rails 6.1
ruby 3.0
aasm 5.5 (I tried 5.4 too, same results)
When I try to call events with bangs, I get …
-
Hello Team ,
It seems that after callback in aasm transition is not executed sometimes.
Can any one provide a reason/fix for the issue.
```
event :approve, :after => [:record_transition, …
-
When create using ModelTwo it freezes rails and consume all memory of the system
``` ruby
ModelTwo.create!
```
``` ruby
class ModelOne < ActiveRecord::Base
include AASM
has_one :model_two
enu…
-
So this is a very strange issue, and I have no idea what's going on. Based on an issue in our app, we wanted a has_many association to be returned with a default ordering applied to it every time you…
-
I am using this with active record and thus have many objects in a variety of states. I found tests failing intermittently and narrowed down what is going on to a failing example.
I create two diffe…
-
Consider the use of a state machine