test/app_root/app/models/switch.rb in state_machine-0.2.0 vs test/app_root/app/models/switch.rb in state_machine-0.2.1

- old
+ new

@@ -11,9 +11,12 @@ # Whether or not saves should fail attr_accessor :fail_save before_save Proc.new {|switch| !switch.fail_save} + # Arbitrary data associated with the switch + attr_accessor :data + def initialize(attributes = nil) @callbacks = [] super end end