lib/finite_machine/catchable.rb in finite_machine-0.2.0 vs lib/finite_machine/catchable.rb in finite_machine-0.3.0
- old
+ new
@@ -4,11 +4,11 @@
# A mixin to allow for specifying error handlers
module Catchable
def self.included(base)
- base.class_eval do
- attr_threadsafe :error_handlers
+ base.module_eval do
+ attr_threadsafe :error_handlers, default: []
end
end
# Rescue exception raised in state machine
#