summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-03 17:52:36 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-03 17:52:36 -0400
commit1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454 (patch)
tree2f919106ace2370d36b6d598390ef7de02d6e31e /state.rb
parentfd3735a1f6b6ccdfde1856116e001c3c3b863f4f (diff)
downloadupstate-1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454.tar.gz
upstate-1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454.tar.xz
upstate-1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454.zip
Make State#rise use local dependency info
State#rise was looking at class-level deps, which is incorrect and which caused an error since class-level deps aren't State objects.
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index b45ebb5..1381480 100644
--- a/state.rb
+++ b/state.rb
@@ -221,7 +221,7 @@ private
# Set this state to true
def rise
return if @active
- self.class.depends.each{ |x| x.hold(self) }
+ @deps.each{ |x| x.hold(self) }
self.class.rising_edge.call(params)
@active = true
State.depsolve_all