summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
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 d8f6458..f476401 100644
--- a/state.rb
+++ b/state.rb
@@ -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