Skip to content

Commit

Permalink
Make sure empty? works on symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
troessner committed Oct 16, 2012
1 parent 95dfa30 commit 0be93ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0be93ff

Please sign in to comment.