lib/statesman/adapters/memory_transition.rb in statesman-1.0.0 vs lib/statesman/adapters/memory_transition.rb in statesman-1.1.0
- old
+ new
@@ -5,10 +5,10 @@
attr_accessor :updated_at
attr_accessor :to_state
attr_accessor :sort_key
attr_accessor :metadata
- def initialize(to, sort_key, metadata = nil)
+ def initialize(to, sort_key, metadata = {})
@created_at = Time.now
@updated_at = Time.now
@to_state = to
@sort_key = sort_key
@metadata = metadata