lib/stateflow/machine.rb in stateflow-0.4.1 vs lib/stateflow/machine.rb in stateflow-0.4.2
- old
+ new
@@ -5,11 +5,11 @@
def initialize(&machine)
@states, @events = Hash.new, Hash.new
instance_eval(&machine)
end
- def state_column(name = nil)
- @state_column ||= name.nil? ? :state : name
+ def state_column(name = :state)
+ @state_column ||= name
end
private
def initial(name)
@initial_state_name = name