-
Hi, it would be nice if I could do something like:
``` ruby
class My Model
aasm do
state :sleeping, :initial => true
state :running
event :run do
transitions :from => :sleeping,…
-
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…
-
In the case of #140
When I have a transition without the `from` part like this:
```ruby
event :manager_post do
transitions to: :posted
end
```
in the after callback, the aasm.from_state is no…
-
Hi,
is it possible to include a description of the cause of the problem, when `AASM::InvalidTransition` is raised? It would be nice to know, why a transition is failing. Maybe
- `AASM::InvalidTransit…
23tux updated
9 years ago
-
**Describe the bug**
This test is failing _sometimes_. Maybe 50% of the time?
```
RSpec.describe Model, type: :model do
let(:model) { create(:model) }
it 'has paper trial' do
model…
-
When there is a default scope and an initial state on an aasm column, upon initialize it takes the scoped state as initial instead of the initial in the aasm state machine. Is it possible to override …
-
I really want to use this but I can't, it errors :
```
cannot load such file -- opal-react` @ `/opal-aasm-0.7.0/lib/opal-aasm.rb:8:in `
```
Commenting it out fixed it.
I also get this error from si…
-
If you don't put `initial: true`, it will still make the first one the initial state *magically*.
What was the logic to requiring users to populate the aasm column with a value?
Would you accep…
-
``` ruby
model.do_something! # calling event "do_something" with persistance
....
# in callback:
aasm.current_event # => :do_something!
```
IMHO exclamation mark in current event name is totally i…
-
HI All,
I think I might have found a few bugs in AS. The first as to do with embeded sacffolds when they are called on a blank page by themselves.
so if I do something like in slim:
h3= "New #{@aas…