diff --git a/lib/transitions.rb b/lib/transitions.rb index c8eea97..6624f40 100644 --- a/lib/transitions.rb +++ b/lib/transitions.rb @@ -79,7 +79,7 @@ def current_state value = instance_variable_set(ivar, read_state) end - !(value.nil? || value.empty?) ? value : sm.initial_state + !(value.nil? || value.to_s.empty?) ? value : sm.initial_state end def self.active_record_descendant?(klazz)