diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-10-10 10:54:42 -0400 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-10-10 10:54:42 -0400 |
commit | bc5e3bb025d247629b7175f9676d3a2da765142d (patch) | |
tree | 63587f88972ddd8a1fe50696e9f28d2cfdd522a2 /state.rb | |
parent | 3b01624e797184fc0e79fbf463bfdd4c3554f8cd (diff) | |
download | upstate-bc5e3bb025d247629b7175f9676d3a2da765142d.tar.gz upstate-bc5e3bb025d247629b7175f9676d3a2da765142d.tar.xz upstate-bc5e3bb025d247629b7175f9676d3a2da765142d.zip |
Get caused_by from class in State#react_to?
State#react_to? was looking for an instance variable that was really a class
attribute.
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ class State # Returns true if this state should be raised if +event+ is occuring def react_to?(event) return false if @status != :down - @caused_by.each do |x| + self.class.caused_by.each do |x| return true if x === event end return false |