Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Is Fireable is not checking the "when" closure #3

Merged
merged 1 commit into from

2 participants

@dhighwayman

No description provided.

@jorgeuriarte jorgeuriarte merged commit af5337e into jorgeuriarte:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 27, 2014
  1. @dhighwayman
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/groovy/grails/plugin/fsm/FsmSupport.groovy
View
5 src/groovy/grails/plugin/fsm/FsmSupport.groovy
@@ -178,7 +178,10 @@ class FsmSupport
def isFireable(a_event) {
def transition = transitions[a_event]
- return (transition[currentState]!=null)
+ transition[currentState].find { to, Closure cond ->
+ cond.setDelegate(target)
+ cond()
+ }
}
def isState(a_state)
Something went wrong with that request. Please try again.