Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aasm.current_event does not appear in aasm.events for banged events #169

@rranelli

Description

@rranelli

Suppose current_event is a non-banged event. Then,

aasm.events(current_state).include? current_event #=> true

Now, suppose current_event is a banged version. In my understanding, the code above should yield the same result. But when actually running it, I get:

aasm.events(current_state).include? current_event #=> false

Is my understanding correct ?

If this is a bug, I would gladly send a patch to fix it.

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions